Spring Boot让jar可以直接运行

<plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
    <configuration>
        <executable>true</executable>
    </configuration>
</plugin>

加入<executable>true</executable>就可以让编程出来的jar不需要java -jar就可以直接运行。

参考: 60. Installing Spring Boot applications

评论

暂无评论