Since springboot common war bag deployment, change cloud development model multi-port case, but not used to deploy
After all, war package or not to visit the project name must be placed in the root directory of tomcat
And this limit can only place a project directory, and the login interface port is limited to the tomcat
Therefore, jar package deployment has become the inevitable way
1, add pom settings
Static files need to access, so files under static files webapp need to specify the location, the specific configuration is as follows
<resource> <directory>src/main/webapp</directory> <targetPath>META-INF/resources</targetPath> <includes> <include>**/*.*</include> </includes> <filtering>false</filtering> </resource>
2, a packaging change from war package jar package, this position is clear, do not say
But when in actual use had some problems, such as during development, static file code changes, and not always reactive, clear your browser cache to no avail
Thus, the buffer is present in the jar packaged springboot
Thus, the development of the above need to comment as well
the above