is expected to be of type but was actually of type 'com.sun.proxy.$Proxy70'
来源:互联网 发布:水泥凝结时间测定数据 编辑:程序博客网 时间:2024/05/22 14:54
spring boot项目,启动报这个异常
原因是:我通过@EnableTransactionManagement 启动了事务,但是没有开启cglib的动态代理。
application.properties增加如下配置
#aopspring.aop.auto=truespring.aop.proxy-target-class=true
依赖中增加:
org.springframework.boot
spring-boot-starter-aop
阅读全文
0 0
- is expected to be of type but was actually of type 'com.sun.proxy.$Proxy70'
- Bean named '*' must be of type [*], but was actually of type [com.sun.proxy.$Proxy34]
- is expected to be of type 'org.com.ssh.hibernate.AOPService.EchoTest' but was actually of type 'com.
- Bean named 'BService' is expected to be of type 'path1' but was actually of type 'path2'
- 解决must be of type [com.bysj.services.CompanyServiceImp], but was actually of type [com.sun.proxy.$Pr
- Bean named 'xxx' must be of type xxx , but was actually of type [com.sun.proxy.$Proxy189]
- BeanNotOfRequiredTypeException: Bean named "" must be of type [] but was actually of type [com.sun.p
- ......but was actually of type [sun.proxy.$Proxy8]
- but was actually of type 'com.sun.proxy.$Proxy**'的两种解决方法
- BeanNotOfRequiredTypeException 异常:but was actually of type 'com.sun.proxy.$Proxy17'
- 使用spring遇到"BeanNotOfRequiredTypeException......but was actually of type [com.sun.proxy.$Proxy18]"异常
- 使用spring遇到"BeanNotOfRequiredTypeException......but was actually of type [com.sun.proxy.$Proxy18]"异常
- Spring AOP事物异常 but was actually of type 'com.sun.proxy.$Proxy17
- Bean named 'testImpl' must be of type [lcw.serviceimpl.testImpl], but was actually of type [com.sun.
- BeanNotOfRequiredTypeException: Bean named "" must be of type [] but was actually of type [com.su
- Getting Spring Error “Bean named 'x' must be of type [y], but was actually of type [$Proxy]” in Jenk
- Bean named 'deptDao' must be of type [com.zttech.sys.dao.IGroupDao], but was actually of type [com.s
- but was actually of type [$Proxy19]
- 用C语言在Linux系统下创建守护进程(Daemon)
- 学生成绩管理系统
- 华为交换机关闭Telnet、开启SSH服务命令
- 7.创建对象时该用"()"还是"{}"?
- Java线程的5种状态及切换
- is expected to be of type but was actually of type 'com.sun.proxy.$Proxy70'
- java中重写equals方法要重写hashCode方法
- html5 canvas图片缩放,拖拽
- Intellij idea编写代码如何在方法之间加入一条分割线
- HashMap工作原理
- mysql集群技术:主从复制,读写分离
- h5标题和列表的学习
- 【转】Centos7.3防火墙配置
- go语言基础