|
增加application.xml- <?xml version="1.0" encoding="UTF-8"?>
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:cache="http://www.springframework.org/schema/cache"
- xmlns:mvc="http://www.springframework.org/schema/mvc"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:p="http://www.springframework.org/schema/p"
- xmlns:context="http://www.springframework.org/schema/context"
- xsi:schemaLocation="http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
- http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context-3.0.xsd
- http://www.springframework.org/schema/mvc
- http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
- http://www.springframework.org/schema/cache
- http://www.springframework.org/schema/cache/spring-cache-3.2.xsd
- http://cxf.apache.org/jaxws
- http://cxf.apache.org/schemas/jaxws.xsd">
- <!-- ApplicationContext -->
- <bean class="org.jeecgframework.core.util.ApplicationContextUtil"></bean>
- <bean class="org.jeecgframework.p3.core.utils.common.ApplicationContextUtil"></bean>
- <import resource="spring-minidao.xml"/>
- <import resource="spring-mvc-*.xml"/>
- <!-- 智能表单配置引入 -->
- <import resource="classpath*:org/jeecgframework/web/cgform/common/spring-mvc-cgform.xml"/>
- <!-- jeecg plugin dev -->
- <import resource="classpath:config/spring-config-p3.xml"/>
- </beans>
复制代码 修改spring-mvc.xml,去掉application.xml中配置的内容:修改web.xml:- <context-param>
- <param-name>contextConfigLocation</param-name>
- <param-value>classpath*:application.xml</param-value>
- </context-param>
复制代码 |
|