Spring Boot - How to specify an alternate start-class? (Multiple Entry Points)

前端 未结 3 1956
既然无缘
既然无缘 2021-02-04 04:47

I want to add an alternate entry point to my Spring-Boot application. I would prefer to keep this as a fat jar. Is this possible?

According to their documentation, the

3条回答
  •  遥遥无期
    2021-02-04 05:05

    I don't believe that property would apply in your case. There are 3 different "Launchers" (go back to the docs and see). If you are building a jar it uses the JarLauncher class. If you switch it to PropertiesLauncher then loader.main would be useful.

    META-INF/MANIFEST.MF

    Main-Class: org.springframework.boot.loader.PropertiesLauncher
    

提交回复
热议问题