1.只要能登录即可
在继承org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter类的子类中覆写protected void configure(AuthenticationManagerBuilder auth) throws Exception方法,使用内存方式指定用户名和密码即可,此种方式无需操作数据库即可。覆写的代码如下:在继承org.springframework.security.con