webmvcconfigurer配置跨域webview 跨域。
如何用webmvcconfigureradapter 要将$http中的Content-Type设置为application/x-www-form-urlencoded因为目前的浏览器只支持这种类型的跨域需要在Application同级目录下写一个配置类,在里面配置一个返回类型为WebMvcConfigurerAdapter的Bean,用registry.addMapping(/*)设置拦截的范围
4小时前