后端:
(1)SecurityUtils工具类获取
SecurityUtils
(2)缓存获取当前用户信息
TokenService
前端:
(3) vue中获取当前用户信息
const username = this.$store.state.user.name;
后端:
(1)SecurityUtils工具类获取
SecurityUtils
(2)缓存获取当前用户信息
TokenService
前端:
(3) vue中获取当前用户信息
const username = this.$store.state.user.name;