java.lang.IllegalArgumentException: Can not set XXX to com.sun.proxy.$Proxy28
来源:互联网 发布:python开发框架是什么 编辑:程序博客网 时间:2024/06/07 03:59
spring项目启动报错:
初次使用spring MVC注解模式进行事务控制
由于spring AOP动态代理默认是通过接口,所以注入事务层的地方都要通过接口进行注入,如果通过实现类进行注入就会报这个错
有人说可以进行配置,然后也可以支持实体类的事务层注入,在配置
中加入
proxy-target-class=”true”
即可
阅读全文
0 0
- java.lang.IllegalArgumentException: Can not set XXX to com.sun.proxy.$Proxy28
- java.lang.IllegalArgumentException: Can not set XXX to com.sun.proxy.$Proxy28
- java.lang.NoSuchMethodException: com.sun.proxy.$Proxy
- java.lang.ClassCastException: com.sun.proxy.$Proxy* cannot be cast to***问题解决方案
- java.lang.ClassCastException: com.sun.proxy.$Proxy27 cannot be cast to com.bbk.n002.service.Question
- java.lang.ClassCastException: com.sun.proxy.$Proxy27 cannot be cast to com.bbk.n002.service.Question
- Java.lang.ClassCastException: com.sun.proxy.$Proxy8 cannot be cast to com.bjsxt.service.UserServiceI
- java.lang.ClassCastException: com.sun.proxy.$Proxy8 cannot be cast to com.bjsxt.service.UserServiceI
- Spring:com.sun.proxy.$proxy0 cannot be cast to XXX
- 【spring】IllegalArgumentException Can not set field to $Proxy 在spring中使用事物或AOP遇到的错误
- java.lang.ClassCastException: com.sun.proxy.$Proxy0 cannot be cast to java.sql.Connection异常问题解决
- java.lang.ClassCastException: com.sun.proxy.$Proxy0 cannot be cast to java.sql.Connection异常问题解决
- java.lang.ClassCastException: com.sun.proxy.$Proxy4 cannot be cast to
- 'Java.lang.'ClassCastException: 'com.sun.proxy.$Proxy8 cannot be cast to 类名'
- Spring报错:java.lang.ClassCastException: com.sun.proxy.$Proxy2 cannot be cast to *
- java.lang.IllegalArgumentException: column 'xxx' does not exist解决方法
- FAQ(22):java.lang.ClassCastException: com.sun.proxy.$Proxy7 cannot be cast to com.spring.Helloworld1
- java.lang.NoSuchMethodException: com.sun.proxy.$Proxy24.newSysUser()解决方案
- servlet 从java中获取参数
- Openstack网络配置--horizon篇
- [几何] Codeforces 772B VK Cup 2017
- Java培训第二天
- 迭代器
- java.lang.IllegalArgumentException: Can not set XXX to com.sun.proxy.$Proxy28
- Linux下的lds链接脚本详解
- 原创一个微型的日志工具类
- 自然语言处理比赛
- 13. Roman to Integer
- 377. Combination Sum IV Medium
- 使用Maven管理引用的jar包
- mysql
- org.springframework.dao.InvalidDataAccessApiUsageException: Write operations