一个SSH 架构的系统,用注解配置相关信息。
tomcat 启动后报如下错误。但是项目运行没有什么问题。很是郁闷
DEBUG [main] FileResourceStore.debug(61) | Unable to read file [org/apache/struts2/dispatcher/DefaultActionSupport.class]
java.io.FileNotFoundException: ..\WEB-INF\classes\org\apache\struts2\dispatcher\DefaultActionSupport.class (系统找不到指定的路径。)
...Unable to read file [java/lang/Throwable.class]
... Unable to read file [java/lang/Throwable.class]
... Unable to read file [java/io/IOException.class]
... Unable to read file [java/lang/Integer.class]
... Unable to read file [java/lang/String.class]
... Unable to read file [org/springframework/stereotype/Controller.class]
... Unable to read file [org/springframework/context/annotation/Scope.class]
... Unable to read file [org/apache/struts2/convention/annotation/Namespace.c
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
是因为手动在struts2的添加了一个配置参数
配置Convention插件自动重加载映射,无需重启【发布时候关闭】
`
struts.convention.classes.reload=true
`
`
struts.properties 改为 false 或者 直接删除该配置参数即可。
`
开发期间设置为true,启动虽然报错,不影响项目运行。