![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java开发中出现的错误总结
蔡小波
啦啦啦啦啦~
展开
-
报错:java.io.FileNotFoundException: class path resource ..cannot be opened because it does not exist
配置spring是出现的问题:java.io.FileNotFoundException: class path resource ..cannot be opened because it does not exist 初学Spring在用Resource rs=new ClassPathResource("applicationContext.xml");时老是遇到这个错误。后来...原创 2019-01-05 20:32:29 · 18079 阅读 · 0 评论 -
配置AOP时报错:java.lang.ClassCastException: com.sun.proxy.$Proxy2 cannot be cast to
报错:Exception in thread "main" java.lang.ClassCastException: com.sun.proxy.$Proxy2 cannot be cast to ********看报错信息,显示的是动态代理生成的类无法转换到我们自定义的实现类。原因:业务层实现了接口 解决方法:方法一:切面配置事务的地方修改成:<aop:con...原创 2019-01-05 21:13:17 · 4353 阅读 · 1 评论 -
部署Spring AOP报错:org.springframework.beans.factory.BeanCreationException解决方法
在部署Spring AOP时出现如下错误:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'adminbean' defined in class path resource [aop_log.xml]: BeanPostProcessor before instan...原创 2019-01-05 22:18:01 · 1973 阅读 · 0 评论