新建接口报错Error message: This template did not produce a Java class or an interface

在IDE中新建接口时无法新建,报错说template不能生成一个class或者一个接口, 解决办法:是因为对应的模板为空,打开File->Settings->Editor->File and Code Templates->Interface 红色区域为空,将一下内容复制上去就可以了: #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${
相关文章
相关标签/搜索