SpringBoot中的ajax跨域问题时间:2023-03-08 20:00:55 在控制类加入注释@CrossOrigin(allowCredentials = "true",allowedHeaders = "*",origins = {"*"})在html加入xhrFields: {withCredentials: true}