只需要在pom.xml的<build>标签中加上这个即可:

1     <build>
2         <finalName>my-spring-boot</finalName> <!-- 指定package生成的文件名为my-spring-boot.jar -->
3         
4         <plugins>
5             ......
6         </plugins>
7     </build>

 

相关文章:

  • 2021-06-02
  • 2022-12-23
  • 2021-10-09
  • 2021-05-20
  • 2022-02-22
  • 2022-01-13
  • 2021-10-09
猜你喜欢
  • 2022-12-23
  • 2021-06-30
  • 2021-05-03
  • 2021-04-19
  • 2021-11-20
相关资源
相似解决方案