Spring boot

  1. Embedded Tomcat does not start
  2. Embedded Tomcat access logs
Tomcat does not start and application exits with 0
Dealing with the spring boot application completing in Intellij IDE without starting tomcat
Main reason for the situation where Tomcat does not start is Java version mismatch.
Embedded Tomcat logging enabled in springboot
To enable the embedded tomcat logging add the following lines to application.properties file
spring.application.name=yourapp
server.tomcat.accesslog.enabled=true
server.tomcat.accesslog.suffix=.log
server.tomcat.accesslog.prefix=access_log
server.tomcat.accesslog.file-date-format=.yyyy-MM-dd
server.tomcat.basedir=tomcat
server.tomcat.accesslog.directory=logs
server.tomcat.accesslog.pattern=common

top of the page