skip to Main Content

Why does Spring Boot not configure Spring Session Redis?

Following this example here I upgraded my Spring Boot 3.2 application to use Redis as session storage. I've added the required dependency: <dependency> <groupId>org.springframework.session</groupId> <artifactId>spring-session-data-redis</artifactId> </dependency> I've set some application properties (yaml): spring.session.redis.flush-mode: on_save spring.session.redis.namespace: "spring:session" spring.data.redis.host: "localhost" spring.data.redis.port: 6379…

VIEW QUESTION

Thymeleaf does not show data in html page

I’m just studying Thymeleaf and I don’t understand why I can’t show data inside my html code. My Thymeleaf controller is as follows: @Controller public class UserController { @GetMapping("/index") public String getMessage(Model model) { model.addAttribute("welcome", "Hello!"); return "index"; } }…

VIEW QUESTION
Back To Top
Search