摘要:
springboot的拦截器配置: 需要在登录的方法中添加一条语句,其实只是添加了一条语句 session.setAttribute("user", user); 新建 package 名为 interceptor,新建类 LoginInterceptor。 Interceptor 即拦截器,在 S 阅读全文
posted @ 2020-12-14 16:09
恋你如初之BUG
阅读(477)
评论(0)
推荐(0)
摘要:
使用的是vue-element 需要安装element这个组件 全局配置: import Vue from 'vue'; import ElementUI from 'element-ui'; import 'element-ui/lib/theme-chalk/index.css'; import 阅读全文
posted @ 2020-12-14 14:46
恋你如初之BUG
阅读(126)
评论(0)
推荐(0)
摘要:
springboot项目+vue的整合,解决方案有两种:一是直接采用springboot的注解@CrossOrigin;二是添加配置类 import org.springframework.context.annotation.Bean; import org.springframework.con 阅读全文
posted @ 2020-12-14 13:20
恋你如初之BUG
阅读(129)
评论(0)
推荐(0)