It's simple, just go to the tutorial, blogger 1. First start docker
2. Pull the tomcat image.
If you don't add the 8-jdk8 tag, the latest version will be pulled by default, which is the latest official version. 3. After the installation is complete, create a container and start tomcat
If a 404 error occurs when accessing the IP+port after normal installation, enter the tomcat directory, delete the original webapps directory, and rename webapps.dist to webapps. The command is as follows
4. Check the container operation status
5. Then package the springboot project, taking the war package as an example <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> </exclusion> </exclusions> </dependency> First exclude the tomcat that comes with springboot <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> Then add the Maven packaging component 6. Package in IDEA, then check the target folder of the project, find the corresponding war package, and copy it to the corresponding directory in Linux 7. Copy the war package into the webapps directory of the tomcat container and check whether it is copied correctly
8. Restart tomcat and access ip+port+project name again
Done! This is the end of this article about how to install tomcat with docker and deploy the Springboot project war package. For more information about how to install tomcat with docker and deploy the Springboot project war package, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: About the problem of dynamic splicing src image address of img in Vue
>>: XHTML tags have a closing tag
Configuration file that needs to be loaded when t...
Table of contents The basic principle of MySQL ma...
Check whether your cuda is installed Type in the ...
It is very easy to delete a table in MySQL, but y...
About let to avoid problems caused by closure Use...
Error message: Store update, insert, or delete st...
Problem description: I used a desktop computer an...
The latest Perfect Aloe Vera Gel packaging box ha...
This blog is a work note environment: nginx versi...
Preface I believe everyone knows that indexes are...
question The code has no prompt: Many non-front-e...
Table of contents Preface Idea startup speed Tomc...
MySQL5.6.40 installation process under CentOS7 64...
Table of contents 1. Component Registration 1.1 G...
This article introduces the method of manually bu...