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."
}
}