原文:Bean named '...' is expected to be of type [...] but was actually of type [com.sun.proxy.$Proxy7解决方法

报错 三月 , : : 下午 org.springframework.context.support.ClassPathXmlApplicationContext prepareRefresh信息: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext cf f : startup date Tu ...

2017-03-07 20:17 1 11754 推荐指数:

查看详情

'pw.fengya.tx.BookService' but was actually of type 'com.sun.proxy.$Proxy1

最近在学习Spring框架的时候,很容易犯下的一个错误,需要在配置文件中打开aop命名空间,并设置如下属性: 不知道为什么,在使用注解配置bean的时候,很容易报的一个错,尤其是自定义的接口与实现类 ...

Sun Mar 25 00:05:00 CST 2018 1 3125
but was actually of type 'com.sun.proxy.$Proxy101' 注入问题

最近在用springboot搭建项目框架时,遇到了如下错误,查询了一番,原来是没有引入spring框架的aop包导致: 问题: 解决方案: 1.添加AOP依赖包 2.配置参数:   spring对AOP有两种实现方式,一种是动态代理,它是通过接口 ...

Sat Sep 22 00:43:00 CST 2018 0 5280
 
粤ICP备18138465号  © 2018-2026 CODEPRJ.COM