IProductService productService = (IProductService)IAPP.getBean("productService");
来源:互联网 发布:淘宝如何查看卖家电话 编辑:程序博客网 时间:2024/04/25 19:23
严重: Servlet.service() for servlet jsp threw exception
java.lang.ClassCastException: $Proxy5 cannot be cast to com.cdm.service.impl.ProductService
改成:
IProductService productService = (IProductService)IAPP.getBean("productService");
List productList = productService.findAll();
原因: 注解事务是AOP实现的,AOP是需要接口的
- IProductService productService = (IProductService)IAPP.getBean("productService");
- 分页查询产品信息:第三步:创建业务层ProductService
- Bean property 'productService' is not writable or has an invalid setter method. Does the parameter t
- getBean
- getBean
- applicationContext.getBean()
- spring getBean
- Spring中的getBean
- spring ApplicationContext#getBean 方法
- spring getbean 用单例模式
- ApplicationContext 测试getBean
- spring getbean 方法分析
- 自定义springUtils用来getBean
- AbstractBeanFactory的getBean方法
- Spring BeanFactory.getBean()流程
- 802.11f -IAPP 06年3月取消 原因不清楚
- getBean方法的执行过程
- Spring BeanFactory getBean 源码剖析
- (莱昂氏unix源代码分析导读-4)PDP11/40系统简介(下)
- C++ FirstStudy
- flex拖动问题
- 商业价值和IT-是不是到了更多介入的时候了?
- 【并查集】Wireless Network
- IProductService productService = (IProductService)IAPP.getBean("productService");
- 【error】LNK2005: already defined in LIBCMTD.lib(typinfo.obj)
- jqgrid常用的参数
- 声明和定义
- thttpd 安装
- 网络流行语
- C#多线程参数传递
- Java 导出word文件
- C++中map的用法