springMVC的<context:component-scan/>标签

项目中单写:
<context:component-scan base-package="com.jd.ads.cpd" />
服务启动ok
当加上context:include-filter> 或<context:exclude-filter>
报错:
java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext;



猜你喜欢

转载自meiyx.iteye.com/blog/2182468