spring boot默认是开启鉴权 比如浏览器访问时 出现:
但开发时, 不需要此功能 该如何取消呢
解决: 以前版本低时, 通过 security.basic.enabled=false 则可取消鉴权
但此方法由于版本或者过时的原因 已不可用
所有只要用过
@EnableAutoConfiguration(exclude = {org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class})
取消SecurityAutoConfiguration自动配置即可