cn.springmvc.service.impl.AFDCityServiceImpl cannot be cast to cn.springmvc.service.AFDCityService
来源:互联网 发布:合作软件开发平台 编辑:程序博客网 时间:2024/05/20 23:40
cn.springmvc.service.impl.AFDCityServiceImpl cannot be cast to cn.springmvc.service.AFDCityService
cn.springmvc.service.impl.AFDCityServiceImpl cannot be cast to cn.springmvc.service.AFDCityService
AFDCityServiceImpl AFDCityServiceImpl;
@Before
public void before() {
@SuppressWarnings("resource")
ApplicationContext context = new ClassPathXmlApplicationContext(
new String[] { "classpath:conf/spring.xml", "classpath:conf/spring-mybatis.xml" });
/////// classpath:conf--->放在了src/main/resources/conf下
AFDCityServiceImpl =(cn.springmvc.service.impl.AFDCityServiceImpl) context.getBean("AFDCityServiceImpl");//改了这里
}
@Test
public void addCity() {
AFDCityInfo afdCityInfo = new AFDCityInfo();
afdCityInfo.setName("dsadsjak");
afdCityInfo.setAreaId("35321325321311445");
System.out.println(AFDCityServiceImpl.insert(afdCityInfo));//改了这个
System.out.println("恰如 成功");
}
- cn.springmvc.service.impl.AFDCityServiceImpl cannot be cast to cn.springmvc.service.AFDCityService
- $Proxy11 cannot be cast to cn.oa.service.impl.UserServiceImpl
- java.lang.ClassCastException: $Proxy17 cannot be cast to *.*.*.service.impl.DeviceService
- ApplicationHttpRequest cannot be cast to MultipartHttpServletRequest springMVC
- com.sun.proxy.$Proxy25 cannot be cast to com.levi.service.impl.ProductServiceImpl和proxy-target-class
- ssh报错java.lang.ClassCastException: com.sun.proxy.$Proxy6 cannot be cast to org.service.impl.EmpServi
- java.lang.ClassCastException: cn.vlabs.csp.model.expotion.ExpoFeeConfig cannot be cast to java.lang.
- java.lang.ClassCastException: cn.study.model.User_$$_javassist_0 cannot be cast to javassist.util.pr
- cn.itcast.domain.Customer_$$_javassist_0 cannot be cast to javassist.util.proxy.Proxy
- .WebDelegatingSubject cannot be cast to cn.itcast.bos.domain.system.User
- Hibernate运行时出现:java.lang.ClassCastException: cn.mo.bean.Role_$$_javassist_1 cannot be cast to javass
- hql投影查询之—— [Ljava.lang.Object; cannot be cast to cn.bdqn.guanMingSys.entity.Notice
- json转换报错 net.sf.ezmorph.bean.MorphDynaBean cannot be cast to cn.xxt.common.domain
- java.lang.ClassCastException: com.sun.proxy.$Proxy27 cannot be cast to com.bbk.n002.service.Question
- Spring+hibernate中的问题解决:java.lang.ClassCastException: $Proxy6 cannot be cast to com.mqEsb.service.imp
- java.lang.ClassCastException: com.sun.proxy.$Proxy27 cannot be cast to com.bbk.n002.service.Question
- 9.ClassCastException: com.sun.proxy.$Proxy24 cannot be cast to com.rchange.service.SysUser
- Java.lang.ClassCastException: com.sun.proxy.$Proxy8 cannot be cast to com.bjsxt.service.UserServiceI
- OSI七层与TCP/IP五层网络架构详解
- 异常
- 补充程序之游戏系列— 3 多文件组织多个类的程序
- 图像配准的步骤
- 6.8IO流
- cn.springmvc.service.impl.AFDCityServiceImpl cannot be cast to cn.springmvc.service.AFDCityService
- Android初级讲师进阶
- 安富莱 fontcvt字符点阵显示程序要点和mdk宽字符支持函数
- 机器学习:LDA_数学基础_1:贝叶斯数学_基础
- keytool工具命令
- Nginx 负载均衡
- MJExtension中MJTypeEncoding.m报错问题
- View的requestDisallowInterceptTouchEvent对事件的影响
- Spring 攻略第003讲