一、复盘项目架构
后端是使用Dubbo架构组织的微服务,Common模块 给三个子服务/模块(AEP、Analyze、CommonProvider)提供公共依赖,其中CommonProvider是作为Web端的后端服务,而Web端使用elementui做前端框架,使用SpringSecurity做安全框架。
二、还原报错
在运行AEP、Analyze两个子模块的时候,出现了如下异常,一直解决不了。
AuthenticationEntryPoint不就是SpringSecurity的文件吗?
Caused by: java.io.FileNotFoundException: class path resource [org/springframework/security/web/AuthenticationEntryPoint.class] cannot be opened because it does not exist
at org.springframework.core.io.ClassPat
本文详述了一起在使用Dubbo架构的微服务项目中,因SpringSecurity配置导致的报错问题。报错出现在AEP和Analyze子模块,问题在于SpringSecurity相关类的引入和定位。通过将SpringSecurity配置文件移到CommonProvider,从AEP和Analyze的POM文件中移除Security依赖,并在启动文件中添加注解,成功解决了报错。
订阅专栏 解锁全文
2177

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



