Spring Boot項(xiàng)目打包指定包名實(shí)現(xiàn)示例
實(shí)現(xiàn)方法
在pom.xml文件中的添加<build></build>配置項(xiàng)<finalName>指定包名</finalName>,如想打包的包名叫myApp,添加<finalName>my_server</finalName>即可。
xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.5</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.javaedge</groupId>
<artifactId>my_server</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>my_server</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>1.8</java.version>
</properties>
<dependencies>
...
</dependencies>
<build>
<!-- 指定打包名稱 -->
<finalName>myApp</finalName>
</build>
</project>以上就是Spring Boot項(xiàng)目打包指定包名實(shí)現(xiàn)示例的詳細(xì)內(nèi)容,更多關(guān)于Spring Boot打包指定包名的資料請關(guān)注腳本之家其它相關(guān)文章!
相關(guān)文章
springMVC+ajax實(shí)現(xiàn)文件上傳且?guī)нM(jìn)度條實(shí)例
本篇文章主要介紹了springMVC+ajax實(shí)現(xiàn)文件上傳且?guī)нM(jìn)度條實(shí)例,具有一定的參考價值,有興趣的可以了解一下。2017-01-01
IKAnalyzer結(jié)合Lucene實(shí)現(xiàn)中文分詞(示例講解)
下面小編就為大家?guī)硪黄狪KAnalyzer結(jié)合Lucene實(shí)現(xiàn)中文分詞(示例講解)。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2017-10-10
Java?NIO的零拷貝實(shí)現(xiàn)高效數(shù)據(jù)傳輸
這篇文章主要為大家詳細(xì)介紹了如何使用Java?NIO的零拷貝實(shí)現(xiàn)高效數(shù)據(jù)傳輸,文中的示例代碼講解詳細(xì),感興趣的小伙伴可以跟隨小編一起學(xué)習(xí)一下2026-03-03

