webwork中只要在xwork.xml中包含其它配置文件即可,如:

webwork和spring多配置文件的方法    <include file="xwork-eduadmin.xml"/>
webwork和spring多配置文件的方法    
<include file="xwork-student.xml"/>
webwork和spring多配置文件的方法    
<include file="xwork-test.xml"/>
webwork和spring多配置文件的方法

spring多配置文件的话,只需要在web.xml文件按照如下定义:
webwork和spring多配置文件的方法    <context-param>
webwork和spring多配置文件的方法        
<param-name>contextConfigLocation</param-name>
webwork和spring多配置文件的方法        
<param-value>
webwork和spring多配置文件的方法            /WEB-INF/applicationcontext*.xml
webwork和spring多配置文件的方法        
</param-value>
webwork和spring多配置文件的方法    
</context-param>
则可实现applicationcontext开头的多配置文件。

相关文章:

  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2021-09-23
  • 2021-09-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
  • 2021-11-14
  • 2021-12-13
  • 2022-12-23
相关资源
相似解决方案