我编写了一个简单的spring-boot应用程序,该应用程序发出POST请求,并将响应打印到屏幕上。
我运行该应用程序,并且有两个测试端点可以按预期工作,但是当我点击主端点以返回JSON时,我会收到此错误
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target; nested exception is
javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target
该应用程序通过spring-boot-starter-web在本地机器上的tomcat服务器上运行,不确定我是否需要在终端安装任何证书