Skip to content

Comments

Documentation and Spring Boot 4 updates and fixes#3688

Open
jkaving wants to merge 4 commits intospring-projects:4.0.xfrom
jkaving:spring-boot-4-documentation
Open

Documentation and Spring Boot 4 updates and fixes#3688
jkaving wants to merge 4 commits intospring-projects:4.0.xfrom
jkaving:spring-boot-4-documentation

Conversation

@jkaving
Copy link

@jkaving jkaving commented Feb 23, 2026

Documentation Fixes
Spring now uses Antora for documentation, which means:

  • The single-page version of the documentation is no longer available
  • The documentation has a version drop-down, so we should no longer link to a specific version.
    (This means we no longer need to parse versions, so it was possible to make a bit of cleanup in
    spring-session-docs.gradle).

There are currently a number of broken links because of this, and I've tried to fix all of them.

Property Changes in Spring Boot
The Spring Session Data Redis properties have been renamed in Spring Boot 4. See here in the migration documentation.
This updates the documentation to use these new property names.

Spring Boot Modular Design
I've updated the samples and the documentation to use the starters now recommended by Spring Boot 4 (see here).

Bonus fix
While testing my changes I had problems when running the spring-session-sample-boot-jdbc and trying to connect with the H2 console using the JDBC URL specified in the documentation.
That's because Spring Boot will give the database a unique (random) name by default.
I've added a property to avoid that and make the jdbc:h2:mem:testdb URL work.

Note: I've tried to follow the contributing guidelines and based this on the oldest impacted maintenance branch, which I think is 4.0.x.

Spring uses Antora for documentation
(see https://spring.io/blog/2023/05/11/spring-framework-reference-documentation-update)
This means:
- The single-page version of the documentation is no longer available
- The documentation has a version drop-down, so we should
  no longer link to a specific version

Signed-off-by: Johan Kaving <johan@kaving.se>
See https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-4.0-Migration-Guide#module-dependencies

This updates both the sample applications and the
dependency examples in the documentation.

Signed-off-by: Johan Kaving <johan@kaving.se>
In spring-session.sample-boot-jdbc we set
  spring.datasource.generate-unique-name=false
so the documentation's reference to "jdbc:h2:mem:testdb" is correct
(see spring-session-docs/modules/ROOT/pages/guides/boot-jdbc.adoc).

Spring Boot sets this property to "true" by default, which results in
the embedded H2 database getting a random name (instead of "testdb").

Signed-off-by: Johan Kaving <johan@kaving.se>
@jkaving jkaving force-pushed the spring-boot-4-documentation branch from d8460b2 to 539795c Compare February 23, 2026 23:43
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants