从Spring Boot应用程序中,我想调用Red Hat Decision Manager kie服务器其余API:
String serverUrl = "https://server:host/services/rest/server";
String username = "username";
String password = "password";
但是我收到此错误:
java.lang.RuntimeException:org.kie.server.common.rest.NoEndpointFoundException:未找到可用的端点
这是因为认证错误。我从网站下载了证书并创建了密钥库。但是,如何从我们的春季启动中调用该https?
答案 0 :(得分:1)
您可以使用rest模板从应用程序中调用rest API:
https://howtodoinjava.com/spring-boot2/resttemplate/spring-restful-client-resttemplate-example/