| | |
| | | http://www.springframework.org/schema/mvc/spring-mvc.xsd |
| | | http://www.springframework.org/schema/context |
| | | http://www.springframework.org/schema/context/spring-context-4.0.xsd |
| | | http://www.springframework.org/schema/task |
| | | http://www.springframework.org/schema/task |
| | | http://www.springframework.org/schema/task/spring-task-4.0.xsd |
| | | http://www.springframework.org/schema/util |
| | | http://www.springframework.org/schema/util/spring-util-2.0.xsd"> |
| | | |
| | | <context:component-scan base-package="com.nanometer.smartlab.api"/> |
| | | <context:component-scan base-package="com.nanometer.smartlab.controller"/> |
| | | |
| | | <!-- 静态资源(js、image等)的访问 --> |
| | | <mvc:default-servlet-handler/> |
| | |
| | | </bean> |
| | | |
| | | <mvc:cors> |
| | | <mvc:mapping path="/**" allowed-origins="*" allow-credentials="true" max-age="1800" allowed-methods="GET,POST,OPTIONS"/> |
| | | <mvc:mapping path="/**" allowed-origins="*" allow-credentials="true" max-age="1800" allowed-methods="GET,POST"/> |
| | | </mvc:cors> |
| | | </beans> |
| | | </beans> |