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

Mysql – i am learning springboot and try to create a table user (maven project)

i am using vs code , jdk version(19), windows 10, java 17 for springboot ,mysql ,hibernate ,lombok etc . the project files are as follows; pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>3.2.0</version> <relativePath/>…

VIEW QUESTION
Back To Top
Search