Idea创建模板

新建文件模板

 

 

/**
 * 
 * @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 {
}

 

posted on 2018-04-25 12:00  近博  阅读(261)  评论(0编辑  收藏  举报

导航