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
Table of contents Some basic configuration About ...
Install Remote-SSH and configure it First open yo...
Note: There was no error in the project startup d...
On the road to self-learning game development, th...
I remember that a few years ago, there was an int...
Installation path: /application/mysql-5.5.56 1. P...
This reading note mainly records the operations r...
When it comes to pictures, the first thing we thi...
Solution to MySql service disappearance for unkno...
As shown below: The test command determines wheth...
When the Docker container exits, the file system ...
Click here to return to the 123WORDPRESS.COM HTML ...
Dynamic rem 1. First, let’s introduce the current...
I haven't worked with servers for a while. No...
You can view the container logs through the docke...