Skip to content
Advertisement

Tag: tomcat

Deploy WAR to Tomcat (Spring Boot + Angular)

I am trying to deploy the Spring Boot Application with WAR packaging to Tomcat 10. The application gets deployed successfully, however, when I try to access the endpoints it results in 404 Not Found. WAR File: application.war Tomcat webapps/application folder consists of following and index.html (Angular) have <base href=”/”> As discussed here, I have added a class AppServletInitializer which extends

Using Spring Boot without Maven

I am trying to write a simple Java program that displays Hello World as a microservice. I am using Spring Boot, but due to security reasons at my company, I am unable to use Maven. Therefore, I have no option but to download the jar files and add them to my project. I have done so, and made sure I

Spring Boot graceful shutdown

I am developing a Spring Boot application backed by embedded Tomcat and I need to develop a graceful shutdown with the following steps: stop processing new HTTP requests (stop web container) process all already accepted requests shutdown Spring ApplicationContext *do the steps above sequentially (one by one) How can I achieve this? P.S. Spring Boot 1.5.20.RELEASE, Java 8 Answer I

Spring Boot: How to disable Tomcat startup logging?

I’m using Spring Boot 2.0.x with Logback. On startup of my application (using an embedded tomcat), I see several INFORMATION log messages (written to standard error) which apparently originate directly from the embedded tomcat. In contrast to the rest of all my logging, these messages seem to not be written by Logback. The messages have the following content: I’m not

Advertisement