Springboot 解决跨域的四种姿势

简介

跨域我就不多说了,我们今天开门见山直接解决跨域的几种姿势,那就上姿势

姿势

姿势一

实现WebMvcConfigurer#addCorsMappings的方法

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry<

猜你喜欢

转载自blog.csdn.net/weixin_45794138/article/details/121445903