Skip to content

Tomcat buildpack in spring Boot. #71

Closed Answered by dmikusa
Exnadella asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry, I'm not sure I understand the problem exactly. Here's what I can share.

  1. By default, Spring Boot apps are going to produce an executable JAR. That will have an embedded web server. Either Tomcat for Spring MVC apps or Netty for Spring WebFlux apps. Either way, it's got everything included and ready to run. In this case, when you run the Spring Boot Maven build tools plugin to make a container image of your app using Buildpacks, it'll package those files up and run the executable directly. It doesn't need to install Tomcat or any web server because Spring Boot has included all of that.

    Here's a sample app of this workflow.

  2. If you change your Spring Boot build configuration to pro…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Exnadella
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants