Skip to content

Documentation and Spring Boot 4 updates and fixes - #3688

Merged
jzheaux merged 4 commits into
spring-projects:4.0.xfrom
jkaving:spring-boot-4-documentation
Sep 9, 2026
Merged

jzheaux merged 4 commits into
spring-projects:4.0.xfrom
jkaving:spring-boot-4-documentation

Conversation

@jkaving

@jkaving jkaving commented Feb 23, 2026

Copy link
Copy Markdown
Contributor

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.

@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
@jzheaux jzheaux self-assigned this Sep 9, 2026
@jzheaux jzheaux added type: bug A general bug in: docs An issue in Documentation or samples and removed status: waiting-for-triage An issue we've not yet triaged labels Sep 9, 2026
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>
@jzheaux
jzheaux force-pushed the spring-boot-4-documentation branch from 539795c to e23e6b1 Compare September 9, 2026 23:22
@jzheaux jzheaux added this to the 4.0.6 milestone Sep 9, 2026
@jzheaux
jzheaux merged commit 0dcbed5 into spring-projects:4.0.x Sep 9, 2026
4 checks passed
@jzheaux

jzheaux commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

Thanks for this thorough PR, @jkaving! It is now merged into 4.0.x and will go out with the next maintenance release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: docs An issue in Documentation or samples type: bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants