Spring Boot让jar可以直接运行

admin 2020年8月17日09:50:43JAVA评论2,030 次浏览阅读模式
<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

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2020年8月17日09:50:43
  • 转载请务必保留本文链接:https://anyun.org/a/jishuguanzhu/bianchengchalou/java/2020/0817/9675.html

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: