至此,SpringBoot整合vue-admin-template实现登录功能完成,完整代码详见码云地址 需要了解SpringBoot整合vue-admin-template实现菜单动态加载的详细步骤,请参阅SpringBoot2.3整合vue-admin-template实现动态路由
#例子(一):./spring-boot.sh start example.jar # 默认启动,默认是 prod 环境 8090端口 #例子(二):./spring-boot.sh start example.jar prod # 指定环境 默认是 8090端口 #例子(三):./spring-boot.sh start example.jar prod 8080 # 指定环境和端口号 maven 打包到docker 容器( 确保本地安装docker ) ...
package com.ifsaid.admin.common.jwt; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; import org.springframework.security.core.co...