话不多说,先上图
以为是shiroconfig的问题,一直再里面找呀找,看呀看,找来找去找不到这个页面在哪里,最后通过资料了解到
spring boot1.5配置security关闭http基本验证,只需要在application.properites中配置
security.basic.enabled=false即可,
但是spring boot 2.0+之后这样配置就不能生效了。
但是我们可以在代码中去配置。
我们可以新建一个类SecurityConfig 继承WebSecurityConfigurerAdapter类,
然后重写父类中的configure(HttpSecurity http) 方法。
然后再一看,好了,神奇不神奇.