|
|
|
@ -1,16 +1,37 @@
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
|
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">
|
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
|
xmlns:aop="http://www.springframework.org/schema/aop"
|
|
|
|
|
xmlns:mvc="http://www.springframework.org/schema/mvc"
|
|
|
|
|
xmlns:tx="http://www.springframework.org/schema/tx"
|
|
|
|
|
xmlns:jdbc="http://www.springframework.org/schema/jdbc"
|
|
|
|
|
xmlns:context="http://www.springframework.org/schema/context"
|
|
|
|
|
xmlns:websocket="http://www.springframework.org/schema/websocket"
|
|
|
|
|
xsi:schemaLocation="
|
|
|
|
|
http://www.springframework.org/schema/context
|
|
|
|
|
http://www.springframework.org/schema/context/spring-context-4.0.xsd
|
|
|
|
|
http://www.springframework.org/schema/beans
|
|
|
|
|
http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
|
|
|
|
|
http://www.springframework.org/schema/jdbc
|
|
|
|
|
http://www.springframework.org/schema/jdbc/spring-jdbc-4.0.xsd
|
|
|
|
|
http://www.springframework.org/schema/tx
|
|
|
|
|
http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
|
|
|
|
|
http://www.springframework.org/schema/aop
|
|
|
|
|
http://www.springframework.org/schema/aop/spring-aop-4.0.xsd
|
|
|
|
|
http://www.springframework.org/schema/mvc
|
|
|
|
|
http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd
|
|
|
|
|
http://www.springframework.org/schema/websocket
|
|
|
|
|
http://www.springframework.org/schema/websocket/spring-websocket-4.0.xsd"
|
|
|
|
|
default-autowire="byName">
|
|
|
|
|
|
|
|
|
|
<context:component-scan base-package="com.platform.controller,com.platform.test;" >
|
|
|
|
|
<context:component-scan base-package="com.platform.controller,com.platform.test,com.platform.websocket;" >
|
|
|
|
|
<context:include-filter type="annotation" expression="org.springframework.stereotype.Controller"/>
|
|
|
|
|
<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Service"/>
|
|
|
|
|
</context:component-scan>
|
|
|
|
|
|
|
|
|
|
<context:annotation-config />
|
|
|
|
|
|
|
|
|
|
<mvc:annotation-driven/>
|
|
|
|
|
|
|
|
|
|
<!-- 用于将对象转换为JSON -->
|
|
|
|
|
<bean id="stringConverter"
|
|
|
|
|