看报错代码是"加载ApplicationContext失败"
原因是上下文配置对象注册写法出错
@ContextConfiguration("cn/wxf/bean/testBean.xml")
此写法是错误的
正确写法:
@ContextConfiguration("classpath:cn/wxf/bean/testBean.xml")
别忘把“classpath”加上
看报错代码是"加载ApplicationContext失败"
@ContextConfiguration("cn/wxf/bean/testBean.xml")
此写法是错误的
@ContextConfiguration("classpath:cn/wxf/bean/testBean.xml")
别忘把“classpath”加上