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就可以直接运行。
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论