Spring Aop 报错 ...but was actually of type 'com.sun.proxy.$Proxy**'的解决方案
刚用Spring Aop通过切面引入新的功能,一个简单的Demo,总是报错
错误描述:Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named '****' is expected to be of type '****' but was actually of type 'com.sun.proxy.$Proxy**'
网上查了说了Spring aop代理混用的问题
解决方案是在你的spring-config.xml文件中,把<aop:aspectj-autoproxy>改为
<aop:aspectj-autoproxy proxy-target-class="true"/>
转载来源:but was actually of type 'com.sun.proxy.$Proxy**'的两种解决方法
Spring Aop 报错 ...but was actually of type 'com.sun.proxy.$Proxy**'的解决方案相关推荐
- Spring aop报错:com.sun.proxy.$Proxyxxx cannot be cast to yyy
在使用Spring AOP时,遇到如下的错误: Exception in thread "main" java.lang.ClassCastException: com.sun.p ...
- Spring AOP 报错 Exception encountered during context initialization - cancelling refresh attempt[已解决]
三月 19, 2018 4:01:40 下午 org.springframework.context.support.AbstractApplicationContext prepareRefresh ...
- 解决Spring Boot报错Mapped Statements collection already contains value for...Error while adding the mapp
解决Spring Boot报错Mapped Statements collection already contains value for...Error while adding the mapp ...
- Spring data报错:Inferred type 'S' for type parameter 'S' is not within its bound;
Spring data报错:Inferred type 'S' for type parameter 'S' is not within its bound; 参照 org.springframewo ...
- Spring Boot 报错ThreadPoolTaskExecutor : Shutting down ExecutorService ‘applicationTaskExecutor‘
问题 Spring Boot 报错ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor' 原因 ...
- 启动Spring项目报错,Springboot启动报错 Disconnected from the target VM 解决过程
启动Spring项目报错,Springboot启动报错 Disconnected from the target VM 解决过程 大概率是缺少了一下依赖 <dependency><g ...
- spring运行报错--org.xml.sax.SAXParseException; lineNumber: 6; columnNumber: 73; cvc-elt.1: 找不到元素 bean的声明
关于spring运行报错 org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 6 in XML do ...
- spring 配置文件报错 Cannot resolve class or package
Spring 配置文件报错 Cannot resolve class or package 明明有明确的类但是还会报错 解决:重新 mvn clean install spring 会一次加载所有在x ...
- mybatis项目启动报错 The content of element type resultMap must match (constructor?,id*,result*,associat...
启动项目报错 2018-02-26 17:09:51,535 ERROR [org.springframework.web.context.ContextLoader] - Context initi ...
- 安装 sklearn 报错 ImportError: cannot import name Type
1. 安装 sklearn sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple sklearn 会默认安装 joblib , s ...
最新文章
- Appium环境搭建简介
- Object Detection中的IOU
- 实用插件_精选 10 个非常实用的 VS Code 插件
- MacOS安装zsh插件zsh-autosuggestion(自动命令补全和建议)
- 网络游戏的客户端同步问题 .
- [导入]C#实现WEB浏览器
- 大数据系列之分布式数据库HBase-1.2.4+Zookeeper 安装及增删改查实践
- 模型驱动架构探索之游戏引擎设计 (二)粒度统一
- weex默认的flex布局_CSS flex布局入门
- html颜色趋势,展望下一年的网页设计配色趋势
- [远程控制]木马伪装:图片
- 用netbean搭建第一个struts的web项目
- linux下卫士软件,Linux系统卫士
- python 判断两个列表间是否具有包含关系以及获取子列表在父列表中的索引
- 行人跟踪之身份识别(三)
- Python音乐下载
- 两个必须更新浏览器的理由,危险就在你身边
- el-table表格无数据时,更改其自带的提示‘暂无数据’
- 北航计算机历年专业,北航计算机考研专业课历年真题(2003-2008).doc
- javascript 计算两个坐标的距离 米_EXCEL VBA曲线坐标计算程序在工程测量中的应用...
热门文章
- linux开机启动rsync,rsync 开机自动启动
- dvd光盘格式化_是什么防止DVD + R光盘重新格式化?
- java基础标识符,关键字,常量
- 内存带宽stream测试
- 计算机桌面壁纸在哪个文件夹,Win10桌面背景在哪个文件夹 Win10桌面背景所在文件夹介绍...
- 内存为程序分配空间的四种分配方式
- 让我们旋转跳跃不停歇~~~当3D打印遇上八音盒!(一)
- TypeError: can only concatenate list (not “int“) to list
- RT_thread 使用4G模块Air720H对STM32进行OTA远程无线升级
- python3 使用sorted 实现倒序