Consul https支持spring启动应用程序(Consul https support for spring boot application)

其他开发 IT屋
百度翻译此文   有道翻译此文
问 题

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.

Any solution for this?

thanks

解决方案

Check out below Spring boot configuration. Notice the scheme property

Spring boot configuration

Secondly add your SSL certificate under trusted root certificates

enter image description here

本文地址:IT屋 » Consul https support for spring boot application

问 题

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



任何解决方案吗?



谢谢


解决方案

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





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




本文地址:IT屋 » Consul https支持spring启动应用程序

官方微信
扫一扫关注IT屋
微信公众号搜索 “ IT屋 ” ,选择关注
与百万开发者在一起