|
@@ -3,15 +3,18 @@
|
|
|
xmlns:aop="http://www.springframework.org/schema/aop"
|
|
|
xmlns:context="http://www.springframework.org/schema/context"
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
+ xmlns:mvc="http://www.springframework.org/schema/mvc"
|
|
|
xsi:schemaLocation="http://www.springframework.org/schema/aop
|
|
|
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
|
|
|
http://www.springframework.org/schema/beans
|
|
|
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
|
|
|
http://www.springframework.org/schema/context
|
|
|
- http://www.springframework.org/schema/context/spring-context-3.0.xsd">
|
|
|
+ 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.xsd">
|
|
|
|
|
|
<description>Spring公共配置</description>
|
|
|
|
|
|
+ <mvc:annotation-driven/>
|
|
|
|
|
|
<!-- Validator设置 -->
|
|
|
<import resource="classpath:spring-servlet-validator.xml"/>
|
|
@@ -42,8 +45,7 @@
|
|
|
</property>
|
|
|
</bean>
|
|
|
|
|
|
- <bean id="loginRedisLogin"
|
|
|
- class="com.baidu.disconf.web.web.auth.login.impl.RedisLoginImplMock"/>
|
|
|
+ <bean id="loginRedisLogin" class="com.baidu.disconf.web.web.auth.login.impl.RedisLoginImplMock"/>
|
|
|
|
|
|
<bean id="zooConfig"
|
|
|
class="com.baidu.disconf.web.service.zookeeper.config.ZooConfig">
|
|
@@ -77,14 +79,12 @@
|
|
|
|
|
|
<beans profile="production">
|
|
|
<import resource="classpath*:/applicationContext-dbconfig.xml"/>
|
|
|
- <bean id="loginRedisLogin"
|
|
|
- class="com.baidu.disconf.web.web.auth.login.impl.RedisLoginImpl"/>
|
|
|
+ <bean id="loginRedisLogin" class="com.baidu.disconf.web.web.auth.login.impl.RedisLoginImpl"/>
|
|
|
</beans>
|
|
|
|
|
|
<beans profile="rd">
|
|
|
<import resource="classpath*:/applicationContext-dbconfig.xml"/>
|
|
|
- <bean id="loginRedisLogin"
|
|
|
- class="com.baidu.disconf.web.web.auth.login.impl.RedisLoginImplMock"/>
|
|
|
+ <bean id="loginRedisLogin" class="com.baidu.disconf.web.web.auth.login.impl.RedisLoginImplMock"/>
|
|
|
</beans>
|
|
|
|
|
|
|