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

前端 未结 3 1960
既然无缘
既然无缘 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:12

    I would suggest having a single main but using Spring profiles (or configuration properties) to select one or other "entry point" @Configuration class.

提交回复
热议问题