您的位置:首页 > 移动开发

ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the cont

2015-07-02 10:14 267 查看
SSH异常:ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context

刚刚开始的时候毫无头绪

百度去

看到大多数都是说是实例化的时候找不到ApplicationContext.xml文件

也有人说是缺少jar包

最终没找到能够解决我的问题的

出去抽了一支烟

忽然想到一个问题:

刚刚做了个service的备份文件

@Service("operatorService")

public class OperatorTemp extends BaseManagerImpl{

}

好了知道原因了:

因为存在两个相同的@Service("operatorService")

把备份文件的@Service("operatorService")改掉就可以了@Service("operatorServicetemp")

OK了 成功启动不报错!!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: