add dependency in pom.xml
pom.xml
<build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>3.0.0</version> <configuration> <mainClass>com.test.Main</mainClass> </configuration> </plugin> </plugins> </build>
run maven command
mvn compile exec:java
mvn spring-boot:run
Last updated 1 year ago