在web应用中突然爆出如下错误:
SEVERE: Servlet.service() for servlet default threw exception
java.lang.Error: Unresolved compilation problems:
The import com.yuhong.it.ycgl.web.service.impl.CaseService cannot be resolved
CaseService cannot be resolved to a type
at com.yuhong.it.ycgl.web.action.cases.CreateAndUpdateCaseAction.<init>(CreateAndUpdateCaseAction.java:10)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
This error comes when Java Compiler not able to find any particular class , referenced from your code.
this issue goes away after I rebuild and redeploy the project
本文介绍了一种常见的Java编译时错误,即无法解析特定导入的类。通过重建和重新部署项目解决了该问题。
1万+

被折叠的 条评论
为什么被折叠?



