百度搜了一下,好多都是springboot+vue的,我要是spring的话怎么弄呢
跨域了,因为前后端服务的端口不一致。
配置一下跨域,controller上加上@CrossOrigin注解试试,或者进行全局配置