springboot前后端访问出现跨域问题的后端最终解决方案 import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.CorsRegistry; import org.springframework.web.servlet.</