Run Spring Not as Server

Under the directory /scr/main/resources/application.properties, add the following line:


In that case, Spring will run as application, and end once it task is completed. You might want to implements CommandLineRunner in your main application class in that case.

  • springboot/run_spring_not_as_server.txt
  • Last modified: 2020/12/10 14:48
  • by chongtin