Bean named 'xxx' must be of type xxx , but was actually of type [com.sun.proxy.$Proxy189]
来源:互联网 发布:手机淘宝不能追加评论 编辑:程序博客网 时间:2024/05/22 13:42
nested exception is org.springframework.beans.factory.BeanNotOfRequiredTypeException:
INFO 04-12 18:12:34 Initializing c3p0-0.9.2 [built 09-February-2013 02:13:17 +0000; debug? true; trace: 10] (C3P0Registry.java:204)
ERROR 04-12 18:12:44 Context initialization failed (ContextLoader.java:331)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.nextwms.api.service.master.StockTransformLxListServiceApi': Cannot resolve reference to bean 'stockTransformLxListService' while setting bean property 'ref'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stockTransformLxListService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'stockTransReader' must be of type [com.nextwms.core.persistence.reader.master.StockTransformLxListReader], but was actually of type [com.sun.proxy.$Proxy189]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:336)
出现如下问题 貌似是名字被占用
改成其他名字就好了 但是问题原因暂不知——
- Bean named 'xxx' must be of type xxx , but was actually of type [com.sun.proxy.$Proxy189]
- Bean named '*' must be of type [*], but was actually of type [com.sun.proxy.$Proxy34]
- “Bean named XXX must be of type[XXX], but was actually of type[XXX]”
- “Bean named XXX must be of type[XXX], but was actually of type[XXX]”
- BeanNotOfRequiredTypeException: Bean named "" must be of type [] but was actually of type [com.sun.p
- 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
- 解决must be of type [com.bysj.services.CompanyServiceImp], but was actually of type [com.sun.proxy.$Pr
- Bean named 'deptDao' must be of type [com.zttech.sys.dao.IGroupDao], but was actually of type [com.s
- Bean named must be of type , but was actually of type
- Bean named '*' must be of type [*], but was actually of type [*] with root case
- is expected to be of type but was actually of type 'com.sun.proxy.$Proxy70'
- Bean named 'transactionAdvice' must be of type [org.aopalliance.aop.Advice], but was actually of typ
- Bean named 'userDao' must be of type [cn.itcast.nsfw.user.dao.UserDao], but was actually of type [cn
- Bean named 'BService' is expected to be of type 'path1' but was actually of type 'path2'
- BeanNotOfRequiredTypeException:Bean named 'xxx' must be of type [xxxxx]...
- ......but was actually of type [sun.proxy.$Proxy8]
- spring boot application properties配置详解
- Java数据结构 HashMap 源码阅读
- 题目1087:约数的个数 九度OJ
- 【Shell】把某一文件夹下所有文件名或者路径存入TXT文档
- RabbitMQ用户角色及权限控制
- Bean named 'xxx' must be of type xxx , but was actually of type [com.sun.proxy.$Proxy189]
- windows系统桌面右下角出现不是正版提示水印的解决办法
- iOS
- leetcode 28
- Win7 IE报错.NET controls is disabled
- AOP(XML)【理解】【应用】【重点】
- Python中Iterable与Iterator
- 读EasyPR开发详解实践感想1
- 4、scrapy内置服务