spring boot中跨域的三种方法 springboot怎么加载mapper配置文件?

springboot怎么加载mapper配置文件?1、要将$http中的Content-Type设置为application/x-www-form-urlencoded因为目前的浏览器只允许这种类型的

springboot怎么加载mapper配置文件?

1、要将$http中的Content-Type设置为application/x-www-form-urlencoded因为目前的浏览器只允许这种类型的跨域

2、需要在Application同级目录下写一个配置类,在里面配置另一个回类型为WebMvcConfigurerAdapter的Bean,用(