[JAVA] [Spring Boot] Precautions when developing a web application with Spring Boot and placing war on an independent Tomcat server

In Spring Boot development, I had no experience of arranging only war on another AP server, so make a note of what I checked.

The following is an excerpt from the following article posted by @TEBASAKI. Spring Boot explanation 4th \ (development environment: war file creation )

1. Program modification

--Added SpringBootServletInitializer inheritance to Application class. --Override of SpringApplicationBuilder method.

2. Modify build.gradle

--When developing a web application with Spring boot, the built war will include the built-in Tomcat. Add a definition to avoid this.

3. Gradle task (war) execution

--Run a Gradle task (war) to create a war (generated in {ProjectName} \ build \ libs).

4. Deployment to Tomcat

--Just put war in the webapps folder (it will be expanded automatically).

Recommended Posts

[Spring Boot] Precautions when developing a web application with Spring Boot and placing war on an independent Tomcat server
Deploy the WEB application by Spring Boot to Tomcat server as WAR
Create a web api server with spring boot
A story that stumbled when deploying a web application created with Spring Boot to EC2
Implement a simple Web REST API server with Spring Boot + MySQL
Let's make a book management web application with Spring Boot part1
Let's make a book management web application with Spring Boot part3
Let's make a book management web application with Spring Boot part2
What is the difference between a web server and an application server?
Start web application development with Spring Boot
Run WEB application with Spring Boot + Thymeleaf
Spring Boot2 Web application development with Visual Studio Code SQL Server connection
How to create a server executable JAR and WAR with Spring gradle
Sign in to a Spring Boot web application on the Microsoft ID platform
I tried to clone a web application full of bugs with Spring Boot
Deploy a Spring Boot application on Elastic Beanstalk
From creating a Spring Boot project to running an application with VS Code
Spring Boot application built-in Tomcat, Apache and WebSocket integration
A memorandum when creating a REST service with Spring Boot
Implement REST API with Spring Boot and JPA (Application Layer)
The first WEB application with Spring Boot-Making a Pomodoro timer-
Try developing a containerized Java web application with Eclipse + Codewind
[Java] Sample project for developing web applications with Spring Boot
[Spring Boot] Web application creation
Rails web server and application server
Easily develop web applications with STS and Spring Boot. In 10 minutes.
Be careful when upgrading Tomcat on a Web system using Oracle
Minimal configuration to run Spring Boot application on Azure Web Apps
Collecting client information when an error occurs in a web application
How to create a web server on an EC2 instance on AWS
gRPC on Spring Boot with grpc-spring-boot-starter
Create an app with Spring Boot 2
Inquiry application creation with Spring Boot
Build a web application with Javalin
Create an app with Spring Boot
Link Apache and Tomcat in a blink of an eye on CentOS 8
Spring5 MVC web application development with Visual Studio Code SQL Server connection
Java beginner tried to make a simple web application using Spring Boot
Spring Boot2 Web application development with Visual Studio Code Hello World creation
Automatically deploy a web application developed in Java using Jenkins [Spring Boot application]
[Java] Deploy a web application created with Eclipse + Maven + Ontology on Heroku
Volume of trying to create a Java Web application on Windows Server 2016
When introducing JOOQ to Spring boot, a story that was dealt with because an error occurred around Liquibase