JSP中正确引入maven项目Hello报错HTTP Status 500 - Unable to compile class for JSP、Hello1 cannot be resolved to

Maven中JSP正确引入maven项目Hello报错处理方法

HTTP Status 500 - Unable to compile class for JSP、、

Hello1 cannot be resolved to a type

JSP中正确引入maven项目Hello报错HTTP Status 500 - Unable to compile class for JSP、Hello1 cannot be resolved to_第1张图片

 

解决:将本项目依赖Hello,在pom里加入如下代码

 
   xxxxxx
 Hello
 0.0.1-SNAPSHOT  
      compile
       

将Hello项目的jar包复制到Tomcat/lib下,更新运行,正确

JSP中正确引入maven项目Hello报错HTTP Status 500 - Unable to compile class for JSP、Hello1 cannot be resolved to_第2张图片

你可能感兴趣的:(SSM)