我们在项目中都会遇到项目打包,可以通过assembly对我们的项目进行打包。1、首先看一下在打包前的项目文件结构。2、在pom.xml中配置assembly插件<build><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><configuration><source>1.8</sour...
继续阅读 >
分类:springboot停止脚本
我们在项目中都会遇到项目打包,可以通过assembly对我们的项目进行打包。1、首先看一下在打包前的项目文件结构。2、在pom.xml中配置assembly插件<build><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><configuration><source>1.8</sour...
继续阅读 >
2020
10-09
10-09
springboot启动脚本start.sh和停止脚本 stop.sh的详细教程
我们在项目中都会遇到项目打包,可以通过assembly对我们的项目进行打包。针对打包构建jar包,本文不再叙述。具体可以参考maven插件assembly使用及springboot启动脚本start.sh和停止脚本stop.sh这里面已经有一个springboot的启动脚本了,本文之所以还要写,是因为之前的脚本存在一个问题。关闭脚本的时候是通过kill-9命令进行的,但其实我们项目中可能很多时候不能强制关闭的,在关闭之前需要做一些事情。比如将内存数据存到磁...
继续阅读 >