E
E
Evgeny Krasnov2020-09-29 13:10:33
Spring
Evgeny Krasnov, 2020-09-29 13:10:33

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

1 answer(s)
O
Orkhan Hasanli, 2020-09-29
@azerphoenix

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 question

Ask a Question

731 491 924 answers to any question