Type Exception Report
Message Unable to compile class for JSP:
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: [14] in the generated java file: [D:\Tomcat\apache-tomcat-9.0.0.M21\work\Catalina\localhost\JspProject\org\apache\jsp\define_jsp.java]
Only a type can be imported. javax.transaction.Synchronization resolves to a package
大致意思是只能导入一种类型,而不是一种一个包。
Paste_Image.png解决办法是
把
javax.transaction.Synchronization
改成
javax.transaction.*
即可。
网友评论