1. Spring boot does not support jsp jar package, jsp can only be war package. <packaging>war</packaging> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build> 2. The tomcat version cannot be too new, as it may be unstable. If you use tomcat10, the result will be 404. If you use tomcat9, it will be normal. The word spring never appears when deployed to tomcat10 Change to tomcat9 and you can see the changes immediately Successful deployment This is the end of this article about solving the 404 error problem of spring boot + jar packaging deployment tomcat. For more relevant spring boot + jar packaging deployment tomcat content, 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:
|
<<: View the command to modify the MySQL table structure
>>: Vue/react single page application back without refresh solution
First, we will introduce how (1) MySQL 5.7 has a ...
This article example shares the specific code of ...
Software version and platform: MySQL-5.7.17-winx6...
1. Installation Instructions Compared with local ...
If we want to make a carousel, we must first unde...
Table of contents Generate random numbers Generat...
In Docker's design, a container runs only one...
Adding indexes can improve query efficiency. Addi...
Two cases: 1. With index 2. Without index Prerequ...
Table of contents 1.0 Introduction 2.0 Docker Ins...
1. It is best to add a sentence like this before t...
This article example shares the specific code of ...
This is a test of the interviewee's basic kno...
Absolute positioning method: (1) Set the parent e...
Table of contents The role of cloneElement Usage ...