Error in creating a new class file
After Baidu, the reason is: there is no class template
Solution: in file > settings> File and Code Templates> Add the following code to class:
#if (${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end #if (${IMPORT_BLOCK} != "")${IMPORT_BLOCK} #end #parse("File Header.java") #if (${VISIBILITY} == "PUBLIC")public #end #if (${ABSTRACT} == "TRUE")abstract #end #if (${FINAL} == "TRUE")final #end class ${NAME} #if (${SUPERCLASS} != "")extends ${SUPERCLASS} #end #if (${INTERFACES} != "")implements ${INTERFACES} #end { }
Similar Posts:
- On the non thread safety problem of simpledateformat and its solution
- @Jsonignoreproperties does not work [How to Solve]
- [Solved] JpaRepository Error: Paging query needs to have a Pageable parameter! Offending method public abstract
- [Solved] org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type
- Mockito can’t solve the problem of mockfinal class
- [Solved] java.lang.NoClassDefFoundError: org/junit/runner/manipulation/Filter
- Two ways to implement Spring Boot’s scanmapper interface class
- Solving the problem of nginx reverse proxy web service soap:address location problem
- DOM style setting methods in the four components of react