使用详见:
https://spring.io/blog/2015/06/08/cors-support-in-spring-framework
简单用法,在Controller 方法上加 @CrossOrigin(origins = "*") 注解支持跨域问题