Consul https支持spring启动应用程序 [英] Consul https support for spring boot application

查看:345
本文介绍了Consul https支持spring启动应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在https上运行的spring启动应用程序。由于应用程序是https,Consul无法进行运行状况检查。当我将其更改为http时,它可以正常工作。

I have a spring boot application that runs on https. Consul is unable to do the health check due to the application is https. When i change it to http, it works.

任何解决方案吗?

谢谢

推荐答案

查看下面的Spring启动配置。注意方案属性

Check out below Spring boot configuration. Notice the scheme property

其次添加SSL证书在受信任的根证书下

Secondly add your SSL certificate under trusted root certificates

这篇关于Consul https支持spring启动应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆