spring boot 1+ 禁用 spring security

security.basic.enabled=false

备注:

在某个版本后已经不支持通过该配置禁用了,在 spring-configuration-metadata.json 文件中有明确标识 :

    {
      "name": "security.basic.enabled",
      "type": "java.lang.Boolean",
      "description": "Whether to enable basic authentication.",
      "defaultValue": true,
      "deprecated": true,
      "deprecation": {
        "level": "error",
        "reason": "The security auto-configuration is no longer customizable. Provide your own WebSecurityConfigurer bean instead."
      }
    }
发布了233 篇原创文章 · 获赞 1 · 访问量 9166

猜你喜欢

转载自blog.csdn.net/qq_37769323/article/details/104281425