摘要: 1. 引入依赖 <dependency> <groupId>org.thymeleaf.extras</groupId> <artifactId>thymeleaf-extras-springsecurity5</artifactId> </dependency> <dependency> <gro 阅读全文
posted @ 2023-01-17 16:52 lwx_R 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 1.引入依赖 <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.18</version> </dependency> <dependency> <group 阅读全文
posted @ 2023-01-17 16:47 lwx_R 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 1.@Secured 角色判断 1.1 开启注解 App启动类中加入注解 @EnableGlobalMethodSecurity(securedEnabled = true, prePostEnabled = true) 1.2 controller层下 @PostMapping("/toIndex 阅读全文
posted @ 2023-01-17 16:42 lwx_R 阅读(15) 评论(0) 推荐(0) 编辑