Spring Security中remember me

To persist remember me, you need to create a table in the database. Note that the name and fields of this table are fixed and do not need to be modified

create table 'persistent_logins'(
    'username' varchar(64) NOT NULL,
    'series' varchar(64) NOT NULL,
    'token' varchar(64) NOT NULL,
    'last_used' timestamp NOT NULL,
    PRIMARY KEY('series')
)ENGINE=InnoDB DEFAULT CHARSET=utf8

Then change spring-security.xml to:

Guess you like

Origin blog.csdn.net/y_bccl27/article/details/109912485