编程语言
首页 > 编程语言> > IDEA 建类报错: Error message: This template did not produce a Java class or an interface

IDEA 建类报错: Error message: This template did not produce a Java class or an interface

作者:互联网

参考引用自 : 尽头

问题现象:

报错


打开File→Settings→Editor,然后找到 File And Code Template ,点开Class,检查发现之前注释代码存在异常,未关闭注释 ,修改后恢复正常。

#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
#parse("File Header.java")
/**
 *@Classname :${NAME}
 *@author : cjp
 * @createDate : ${YEAR}-${MONTH}-${DAY} ${HOUR}:${MINUTE}:${SECOND}
 * @Description : 
 * @use :
 **/
public class ${NAME} {
}

标签:Java,NAME,PACKAGE,did,注释,报错,File,class
来源: https://www.cnblogs.com/magicfox/p/16303620.html