Answer the question
In order to leave comments, you need to log in
How to rename mysql table "persistent_logins" in Spring Security?
Greetings dear forum users.
How to rename mysql table "persistent_logins" in Spring Security ?
This table is used for the operation of the "REMEMBER ME" mechanism and its name is set by default as "persistent_logins" and now the task is to change this name.
On the Internet, I found an explanatory solution, but not the solution itself . It just says - do it without knowing what)))
Can you explain and clearly show how to do it?
Answer the question
In order to leave comments, you need to log in
Well... I think it 's pretty clear what needs to be done.
Create a class and extend the JdbcDaoSupport class. Then implement the PersistentTokenRepository class. Use this class like a spring bean.
Next, in the configs, write this class in the attribute - token-repository-ref
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question