0 votes
10 views
in Spring Boot by

How to create an executable jar using spring boot ?

1 Answer

0 votes
by (4.7k points)

If you want to create an executable jar in spring boot then you must be add the following in your pom.xml file.

pom.xml:-

<packaging>jar</packaging>

Use "mvn clean" package to create the executable jar file.

<build>

    <plugins>

        <plugin>

            <groupId>org.springframework.boot</groupId>

            <artifactId>spring-boot-maven-plugin</artifactId>

        </plugin>

    </plugins>

</build>

Share:- Whatsapp Facebook Facebook


Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.

Categories

...