问题描述
我需要运行Spring Boot,该Spring Boot通过Digest身份验证向另一个Sprin Boot服务发出HTTP请求
问题:
- 我应该在Spring Initializer上选择哪个Spring Boot依赖项
- 有人可以告诉我示例代码(我是Spring Boot的初学者)
我在此链接https://www.baeldung.com/resttemplate-digest-authentication
中找到了解决方案谢谢大家
解决方法
您需要在pom.xml中具有以下依赖项。
- spring-security-web
- spring-security-config
有关更多详细信息,请参阅此Spring Security Digest Authentication