spring boot默认是开启鉴权 比如浏览器访问时 出现:

spring boot 默认开启鉴权, 如何取消

但开发时, 不需要此功能 该如何取消呢

解决: 以前版本低时, 通过 security.basic.enabled=false 则可取消鉴权

但此方法由于版本或者过时的原因 已不可用

所有只要用过 

@EnableAutoConfiguration(exclude = {org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class})

取消SecurityAutoConfiguration自动配置即可

相关文章:

  • 2022-12-23
  • 2021-11-23
  • 2021-06-15
  • 2021-09-06
  • 2022-01-12
  • 2021-12-31
  • 2022-01-11
猜你喜欢
  • 2022-01-25
  • 2021-11-30
  • 2022-12-23
  • 2021-10-14
  • 2021-10-09
  • 2022-12-23
  • 2021-08-25
相关资源
相似解决方案