gsd 2 years ago
parent
commit
b677a53b31
  1. 4
      pom.xml
  2. 2
      src/main/java/app/MainApi.java

4
pom.xml

@ -7,6 +7,7 @@
<groupId>org.example</groupId> <groupId>org.example</groupId>
<artifactId>MainApi</artifactId> <artifactId>MainApi</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties> <properties>
<maven.compiler.source>18</maven.compiler.source> <maven.compiler.source>18</maven.compiler.source>
@ -105,6 +106,9 @@
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>app.MainApi</mainClass>
</configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>

2
src/main/java/app/MainApi.java

@ -6,6 +6,6 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication @SpringBootApplication
public class MainApi { public class MainApi {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(MainApi.class); SpringApplication.run(MainApi.class, args);
} }
} }

Loading…
Cancel
Save