https://www.cnblogs.com/yuarvin/p/10923280.html

和之前springboot1.x时不一样了,需要配置一个CorsFilter bean。
哎,无聊的配置。就不能一行配置默认开启全局跨域吗