| | |
| | | <context:component-scan base-package="com.nanometer.smartlab.api"/> |
| | | <context:component-scan base-package="com.nanometer.smartlab.controller"/> |
| | | |
| | | <!-- 静态资源(js、image等)的访问 --> |
| | | <mvc:default-servlet-handler/> |
| | | |
| | | <context:property-placeholder ignore-unresolvable="true" location="WEB-INF/config.properties" file-encoding="UTF-8"/> |
| | | <!-- 开启注解 --> |
| | | <!-- 默认的注解映射的支持,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping --> |
| | |
| | | <mvc:cors> |
| | | <mvc:mapping path="/**" allowed-origins="*" allow-credentials="true" max-age="1800" allowed-methods="GET,POST"/> |
| | | </mvc:cors> |
| | | |
| | | |
| | | <mvc:resources mapping="/upload/**" location="file:///d:/opt/file/smartlab/img/" /> |
| | | <!-- 静态资源(js、image等)的访问 --> |
| | | <mvc:default-servlet-handler/> |
| | | </beans> |