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