Skip to content
Advertisement

Tag: embedded-tomcat

How to add health endpoint in Apache Tomcat 9?

I am using Apache Tomcat 9 server as a Maven dependency in my project. It is working fine and now I need to add a health endpoint so that it will return 200 OK if everything is running fine. I came to know about HealthCheckValve (https://tomcat.apache.org/tomcat-9.0-doc/config/valve.html#Health_Check_Valve) option in Tomcat 9 which is helpful. But I am not been able to

Simple Embedded Tomcat 10 Example

I’m trying to get a simple embedded tomcat 10.1.0-M11 example working but I keep getting localhost refused to connect when I go to http://localhost:8080/aa. There is no StackOverflow label yet for embedded-tomcat-10. Here is my code: Dependencies UPDATE I have gone through every single version I found that this bug was introduced in version 9.0.0.M4 and never resolved since then.

Advertisement