springboot页面报错Unable to compile class for JSP,即不能编译JSP

Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Thu Jul 26 15:44:28 CST 2018
There was an unexpected error (type=Internal Server Error, status=500).
Unable to compile class for JSP: An error occurred at line: [16] in the generated java file: [C:\Users\Administrator\AppData\Local\Temp\tomcat.4437281889165763615.8080\work\Tomcat\localhost\ROOT\org\apache\jsp\WEB_002dINF\jsp\Tip\chatTipDetail_jsp.java] Only a type can be imported. weixin.pojo.SNSUserInfo resolves to a package An error occurred at line: [18] in the generated java file: [C:\Users\Administrator\AppData\Local\Temp\tomcat.4437281889165763615.8080\work\Tomcat\localhost\ROOT\org\apache\jsp\WEB_002dINF\jsp\Tip\chatTipDetail_jsp.java] Only a type can be imported. com.ai.model.AdminTipMsg resolves to a package Stacktrace:

出错页面代码,java引入路径有错

Logo

CSDN联合极客时间,共同打造面向开发者的精品内容学习社区,助力成长!

更多推荐