SpringSecurity给我们提供了一套最基本的认证方式,可是这种方式远远不能满足大多数系统的需求.不过好在SpringSecurity给我们预留了许多可扩展的接口给我们,我们可以基于这些接口实现自己的认证方式. 一.前期准备工作 1.1.创建示例数据库 Student表: create table student ( id int auto_increment primary key, stuName ) null, password ) null, joinTime datetime n…