springboot2.0 +, integrated security experience always log on to an unknown source of the login page

Man of few words said, first on the map

 

 Shiroconfig thought it was a problem, which has been re-Zhao Ya find, behold look, asking many can not find the page where the information learned through the last

spring boot1.5 configure security Close http basic authentication, only need to configure application.properites in
security.basic.enabled = false can be,
but spring boot after 2.0+ this configuration will not take effect.
But we can go to the configuration code.
We can create a new class inherits WebSecurityConfigurerAdapter SecurityConfig class,
and then override the parent class's configure (HttpSecurity http) method.

 

 

 Made then, well, the magic is not magic.

 

 

Guess you like

Origin www.cnblogs.com/wu-kong-sx/p/11904852.html