SSH-service错误
来源:互联网 发布:js函数返回true false 编辑:程序博客网 时间:2024/06/05 09:22
type Exception report
message Unable to instantiate Action, book.action.BookAction, defined for 'user' in namespace '/'Error creating bean with name 'book.action.BookAction': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'bookService' must be of type [book.service.impl.BookServiceImpl], but was actually of type [com.sun.proxy.$Proxy85]
description The server encountered an internal error that prevented it from fulfilling this request.
exception
Unable to instantiate Action, book.action.BookAction, defined for 'user' in namespace '/'Error creating bean with name 'book.action.BookAction': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'bookService' must be of type [book.service.impl.BookServiceImpl], but was actually of type [com.sun.proxy.$Proxy85]com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:316)com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:397)com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:194)org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63)org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:37)com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:552)org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
原因是 private BookServiceImpl bookService;
不能直接用实现类,要用接口
改为: private BookService bookService;
0 0
- SSH-service错误
- SSH错误
- git错误--ssh: Could not resolve hostname ssh.github.com: Name or service not known--解决方式
- git错误--ssh: Could not resolve hostname ssh.github.com: Name or service not known--解决方式
- Startup ssh service
- ubuntu: ssh service
- Docker Add SSH Service
- SSH 整合 nested exception is org.hibernate.service.spi.ServiceException错误
- Configure SSH service on Linux
- Ubuntu服务器启动ssh service
- Service Unavailable 错误 解决办法
- Service 的 ANR 错误
- 错误提示----SSH篇
- SSH常见错误拾遗
- SSH 整合 常见错误
- SSH配置错误集
- SSH 错误集锦
- SSH整合低级错误
- Linux 搭建支持SSL加密传输的ftp服务器
- 写makefile基本点
- ApplicationContextAware
- 查看动态链接库依赖关系的命令
- ARM MMU工作原理剖析
- SSH-service错误
- Linux下测试使用scp
- Java的几种对象
- 盲信号的背景
- 动态生成表格
- java中二维数组的操作
- c语言文件操作函数应用(1) ——学习整理
- angularjs ui-grid 导出表格数据csvExport
- Java POI 导出EXCEL经典实现以及 Java导出Excel弹出下载框