占位符解析仅支持
tableName
属性
@EnableJdbcHttpSession
(见
related
JdbcHttpSessionConfiguration
code
).
application.yml
,如果您使用的是Spring Boot,则可以省略
@启用JDBCHttpSession
spring.session.jdbc.cleanup-cron=0 * * * * * # Cron expression for expired session cleanup job.
spring.session.jdbc.initialize-schema=embedded # Database schema initialization mode.
spring.session.jdbc.schema=classpath:org/springframework/session/jdbc/schema-@@platform@@.sql # Path to the SQL file to use to initialize the database schema.
spring.session.jdbc.table-name=SPRING_SESSION # Name of the database table used to store sessions.
参见弹簧靴
reference manual
更多细节。