All Questions
Tagged with spring-session jdbc
12
questions
1
vote
0
answers
121
views
How to Mock JDBC in Unit Test for Spring Session
I'm working in a Kotlin application that uses Spring Boot, and one of the Controller classes uses Spring Session with JDBC to persist session IDs:
@RestController
@RequestMapping("/health")
...
0
votes
1
answer
376
views
Spring security - maximumSessions() - not working
I have a project in Spring boot, with Spring security and spring session. I wanted to persist my session in a database so I specified it in application.properties:
spring.session.store-type=jdbc
I ...
0
votes
1
answer
140
views
Spring session schema for sybase jdbc not working
Am using the sybase schema file provided in spring session documentation. But I still face incorrect syntax near "ON". So delete cascade is not working for the SPRING_SESSION_ATTRIBUTES ...
1
vote
1
answer
2k
views
Using spring-data-jdbc and spring-session-redis
It seems that spring-data-jdbc and spring-session-redis can't work together, at least not without any additional configuration.
Am I missing something?
Here is my error:
....
2
votes
1
answer
9k
views
Spring session bad SQL grammar [DELETE FROM SPRING_SESSION WHERE EXPIRY_TIME < ?];
I'm using Spring Boot 2.3.3, JDBC and Spring Session Jdbc with Oracle 19 c.Iwant to configure my spring session but i got this error.
ERROR 1424 --- [pool-1-thread-1] o.s.s.s.TaskUtils$...
2
votes
1
answer
639
views
Restrict creation of Sessions which do not have principal
I am using Spring sessions with JDBC and it works fine. But there are numerous sessions being created without principal.
Even a simple curl request creates a new session entry in the database.
Can we ...
0
votes
2
answers
751
views
After using Filter of spring-session-jdbc session object is empty in later CompositeFilter
Problem Describe(seems timing problem):
After using SpringSessionRepositoryFilter, session object is empty during
the processing period of OtherFilter at the begining of every request
What I ...
1
vote
0
answers
150
views
Spring boot, spring session, JDBC
My project is an attendance application which use Mobil app as UI to send user attendance, I have developed in spring boot, MySQL for DB, spring security. After login to application the user will have ...
3
votes
2
answers
2k
views
Using JSON format with Spring Session JDBC
When you use spring-session-jdbc, the sessions are serialized in DB as bytes, which means you have to drop all sessions every time you upgrade Spring to a version with incompatible Session....
2
votes
1
answer
4k
views
Spring session with JDBC integration
I am new in Spring Session and want to use embedded database to store session information. I follow all the steps in
http://docs.spring.io/spring-session/docs/current/reference/html5/guides/...
10
votes
3
answers
18k
views
Spring-Session with JDBC configuration: Table 'test.spring_session' doesn't exist
I try to run this example but without using Redis, instead with my local MySQL server.
I have edited this spring boot app like this:
Gradle:
buildscript {
repositories {
mavenCentral()
...
0
votes
1
answer
2k
views
Use existing Spring Boot dataSource for spring-session-jdbc
In my spring-boot application I have an existing dataSource, which I use for Hibernate and/or JdbcTemplate.
I am planning to use spring-session with spring-session-jdbc in the future.
Can the ...