先说原因:高版本弃用了开启基于http basic的安全认证的配置:security.basic.enabled=true
异常如下:
解决方案:
需要在注册中心服务中增加开启基于http basic的安全认证的处理,唯一想说明的是,网上的解决方案,我标注的地方使用的是new SystemPasswordEncoder(),当前Spring-boot-starter-security2.3.1不支持
效果:
先说原因:高版本弃用了开启基于http basic的安全认证的配置:security.basic.enabled=true
异常如下:
解决方案:
需要在注册中心服务中增加开启基于http basic的安全认证的处理,唯一想说明的是,网上的解决方案,我标注的地方使用的是new SystemPasswordEncoder(),当前Spring-boot-starter-security2.3.1不支持
效果: