新建文件模板
/** * * @author zenglw * @date ${DATE} */
Mapper
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end #parse("File Header.java") @Mapper public interface ${NAME}Mapper extends JpaMapper<${NAME},Long> { }
domain
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end #parse("File Header.java") @Data public class ${NAME} implements Serializable { }
service
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end #parse("File Header.java") @Service public class ${NAME}Service{ }
controller
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end #parse("File Header.java") @RestController public class ${NAME}Controller{ }
repository
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end #parse("File Header.java") @Repository public class ${NAME}Repository { }