spring boot springboot访问静态页面,并加载css、js样式 애타게샤오닝 发表于2024-06-23 浏览6444 评论0 1、添加thyme leaf模板依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> 2、将静态资源分别放入spring boot相应目录下,一般static放资源,t
spring spring security Ⅲ—— authenticationManager.authenticate()验证流程(spring security authenticated) 。 发表于2024-06-20 浏览5158 评论0 1、触发UsernamePasswordAuthenticationFilter 其返回值是一个方法 getAuthenticationManager().authenticate(authRequest) 的返回值 //将用户输入封装 UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(userDB.getUsername(), user.