如题,想问下standardContext.xml放在applicationContext中加载和web.xml中加载有什么不同applicationContext.xml配置
<beans>
<bean id="gov.oupService" class="gov.adapter.oup.ws.WsOupService"></bean>
<import resource="wqs/wqs-spring.xml"/>
<import resource="standard/standard-spring.xml"/>
<import resource="standard/standardContext.xml"/>
</beans> web.xml配置:
<!-- spring init -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/classes/*Context.xml;/WEB-INF/classes/standard/*Context.xml;
</param-value>
</context-param>springimportclassbean
<beans>
<bean id="gov.oupService" class="gov.adapter.oup.ws.WsOupService"></bean>
<import resource="wqs/wqs-spring.xml"/>
<import resource="standard/standard-spring.xml"/>
<import resource="standard/standardContext.xml"/>
</beans> web.xml配置:
<!-- spring init -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/classes/*Context.xml;/WEB-INF/classes/standard/*Context.xml;
</param-value>
</context-param>springimportclassbean
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货