springboot自动启动脚本

2021-07-12  本文已影响0人  cjlynn

:: 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>
上一篇 下一篇

猜你喜欢

热点阅读