Specify main class Spring-Boot command line

前端 未结 3 1692
-上瘾入骨i
-上瘾入骨i 2021-02-01 06:11

I use maven plugin to set the main class like this :


org.springframework.boot
spring-boot-maven-p         


        
3条回答
  •  遇见更好的自我
    2021-02-01 06:42

    There's a launcher for that in Spring Boot already. You need to build the jar with that as the Main-Class (by setting the layout in the build config).

提交回复
热议问题