- 博客(3)
- 收藏
- 关注
原创 Spring AOP测试出错IllegalStateException: Unable to load cache item
首次使用AspectJ实现AOP报错
2023-05-08 12:13:12
888
原创 spring完全注解开发报错class path resource [class com.SpringConfig] cannot be opened because it does not exis
解决方法:使用完全注解加载配置类时需要用AnnotationConfigApplicationContext类来加载,而不是使用原先加载配置文件的方法。@ComponentScan(basePackages = {"com.xxlife"})//开启扫描包。产生原因:运行代码时加载配置类的方法还用加载配置文件时的方法,下边时错误加载方式。@Configuration//将该类作为配置类,替代xml配置文件。运行类加载配置类的代码。
2023-04-25 23:12:55
3660
原创 spring注解报错:expected single matching bean but found 2
spring注解报错:expected single matching bean but found 2
2023-04-25 20:42:29
4878
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人