作者rexhuang (BlueCancer)
看板java
标题[分享] Spring Boot、Security+Thymeleaf范例
时间Wed Mar 3 21:41:46 2021
用来练习Spring Boot、Spring Security、Spring MVC满方便的
mvn spring-boot:run启动之後连8080就可以测试
https://github.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo
org.inlighting.security.service的Database.java:
Mock Data,执行此专案不需要资料库
org.inlighting.security.security的SecurityConfig.java:
基本参数设定、密码加密方式
org.inlighting.security.security的CustomUserDetailsService.java:
implements UserDetailsService
org.inlighting.security.controller的UserController.java:
设定RequestMapping路由
--
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 118.161.74.160 (台湾)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/java/M.1614778909.A.738.html
※ 编辑: rexhuang (118.161.74.160 台湾), 03/03/2021 21:44:09
1F:→ mureka: you should try grails or micronaut 04/02 21:57