*已解决*我可以将Spring Boot作为具有Digest身份验证请求的客户端运行吗?

问题描述

我需要运行Spring Boot,该Spring Boot通过Digest身份验证向另一个Sprin Boot服务发出HTTP请求

问题:

  1. 我应该在Spring Initializer上选择哪个Spring Boot依赖项
  2. 有人可以告诉我示例代码(我是Spring Boot的初学者)

This is my goal


我在此链接https://www.baeldung.com/resttemplate-digest-authentication

中找到了解决方

谢谢大家

解决方法

您需要在pom.xml中具有以下依赖项。

  • spring-security-web
  • spring-security-config

有关更多详细信息,请参阅此Spring Security Digest Authentication