You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/session/SessionProperties.java
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -144,16 +144,21 @@ public Initializer getInitializer() {
144
144
publicclassInitializer {
145
145
146
146
/**
147
-
* Create the required session tables on startup if necessary.
147
+
* Create the required session tables on startup if necessary. Enabled
148
+
* automatically if the default table name is set or a custom schema is
Copy file name to clipboardExpand all lines: spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -369,7 +369,7 @@ content into your application; rather pick only the properties that you need.
369
369
370
370
# SPRING SESSION ({sc-spring-boot-autoconfigure}/session/SessionProperties.{sc-ext}[SessionProperties])
371
371
spring.session.hazelcast.map-name=spring:session:sessions # Name of the map used to store sessions.
372
-
spring.session.jdbc.initializer.enabled=true # Create the required session tables on startup if necessary.
372
+
spring.session.jdbc.initializer.enabled= # Create the required session tables on startup if necessary. Enabled automatically if the default table name is set or a custom schema is configured.
373
373
spring.session.jdbc.schema=classpath:org/springframework/session/jdbc/schema-@@platform@@.sql # Path to the SQL file to use to initialize the database schema.
374
374
spring.session.jdbc.table-name=SPRING_SESSION # Name of database table used to store sessions.
375
375
spring.session.mongo.collection-name=sessions # Collection name used to store sessions.
0 commit comments