Bean named '*' must be of type [*], but was actually of type [*] with root case
来源:互联网 发布:监控计算机的软件 编辑:程序博客网 时间:2024/05/01 21:41
一个很小的bug,调了半个小时。原因在于SpringMVC中调用了一个返回值为空的方法,却没有写@ResponseBody
@ResponseBody
作用:
该注解用于将Controller的方法返回的对象,通过适当的HttpMessageConverter转换为指定格式后,写入到Response对象的body数据区。
使用时机:
返回的数据不是html标签的页面,而是其他某种格式的数据时(如json、xml等)使用;
0 0
- Bean named '*' must be of type [*], but was actually of type [*] with root case
- “Bean named XXX must be of type[XXX], but was actually of type[XXX]”
- Bean named must be of type , but was actually of type
- “Bean named XXX must be of type[XXX], but was actually of type[XXX]”
- Bean named '*' must be of type [*], but was actually of type [com.sun.proxy.$Proxy34]
- BeanNotOfRequiredTypeException: Bean named "" must be of type [] but was actually of type [com.sun.p
- BeanNotOfRequiredTypeException: Bean named "" must be of type [] but was actually of type [com.su
- Bean named 'transactionAdvice' must be of type [org.aopalliance.aop.Advice], but was actually of typ
- Getting Spring Error “Bean named 'x' must be of type [y], but was actually of type [$Proxy]” in Jenk
- Bean named 'testImpl' must be of type [lcw.serviceimpl.testImpl], but was actually of type [com.sun.
- Bean named 'userDao' must be of type [cn.itcast.nsfw.user.dao.UserDao], but was actually of type [cn
- Bean named 'xxx' must be of type xxx , but was actually of type [com.sun.proxy.$Proxy189]
- Bean named 'deptDao' must be of type [com.zttech.sys.dao.IGroupDao], but was actually of type [com.s
- 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
- but was actually of type [$Proxy19]
- is expected to be of type but was actually of type 'com.sun.proxy.$Proxy70'
- BeanNotOfRequiredTypeException:Bean named 'xxx' must be of type [xxxxx]...
- IQKeyBoardManager - 不用写一行代码就完美解决IOS开发键盘遮挡的类库
- 解决weblogic的JDK和编码问题
- 从Postgres95到PostgreSQL9.5:新版亮眼特性
- virtualbox创建com对象失败(解决方法)
- Oracle数据类型之number
- Bean named '*' must be of type [*], but was actually of type [*] with root case
- 2.bean的命名和实例化、依赖注入方式
- Android Application Architecture
- hihocoder1269 优化延迟(二分&优先队列)
- 在windows下codeblocks中配置pthread的库
- UIScrollView频道滑动(授人以鱼,不如授人以渔)
- webview加载html代码,其中代码中有图片
- 第一篇文章--学习小感欢迎交流
- iOS开发 ☞ UIImage部分拉伸——stretchableImageWithLeftCapWidth的使用