如果是spring security里面的toke,建议自动生成数据库,别人token进不去,我在配置类里面写了
jdbcTokenRepository.setCreateTableOnStartup(true);//自动创建表
也没有效果,建议自动生成数据库,生成sql语句在这
create table persistent_logins (username varchar(64) not null, series varchar(64) primary key, token varchar(64) not null, last_used timestamp not null)