美文网首页
springboot自动启动脚本

springboot自动启动脚本

作者: cjlynn | 来源:发表于2021-07-12 18:10 被阅读0次

:: Spring Boot Startup Script ::

springboot项目可以通过xxxx.jar restart启动,只需要配置<executable>true</executable>即可

<plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>2.1.1.RELEASE</version>
                <configuration>
                    <executable>true</executable>
                    <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

相关文章

网友评论

      本文标题:springboot自动启动脚本

      本文链接:https://www.haomeiwen.com/subject/ppkdpltx.html