配置允许跨域配置文件
<pre<code@ConfigurationpublicclassCORSConfigimplementsWebMvcConfigurer{/允许跨域addMapping(&34;/&34;)允许什么样的请求可以跨域这里设置的所有请求all
<pre<code@ConfigurationpublicclassCORSConfigimplementsWebMvcConfigurer{/允许跨域addMapping(&34;/&34;)允许什么样的请求可以跨域这里设置的所有请求all