问题
The default table name that manages remember-me authentication in Spring Security is "persistent_logins".
Due to Database naming conventions, I need to rename this table "persistent_logins" to "T_PERSISTENT_LOGINS".
Any help please.
回答1:
You'll need to write your own implementation of JdbcTokenRepositoryImpl
Create a class extending JdbcDaoSupport and implementing PersistentTokenRepository
Configure this class as a bean in your Spring Application Context Config, then set it as the token-repository-ref attribute of the remember-me Spring Security Config
But frankly, I'd change your table naming policy first.
来源:https://stackoverflow.com/questions/36261216/how-to-rename-the-table-persistent-logins-in-spring-security