Run Java spring application

This question already has an answer here:

  • What does “Could not find or load main class” mean? 39 answers

  • 它是一个可执行的jar文件,所以你可以用它来运行它:

    java -jar target/spring-boot-admin-sample.jar
    

    If you want to run it in the background, so that it doesn't exit when you close your terminal etc. try:

    java -jar target/spring-boot-admin-sample.jar &
    

    I usually do this when I'm testing some POC SpringBoot apps locally.

    链接地址: http://www.djcxy.com/p/54982.html

    上一篇: Java类(PermGen)内存泄漏(Web应用程序)

    下一篇: 运行Java Spring应用程序