SpringBoot项目外部化配置SpringApplication | MSCode微服务平台框架代码源码

SpringBoot项目外部化配置SpringApplication。

MSCode微服务平台框架 mscodecloud.com 代码示例

spring.main.web-application-type=none
spring.main.banner-mode=off
new SpringApplicationBuilder()
    .bannerMode(Banner.Mode.OFF)
    .sources(demo.MyApp.class)
    .run(args);
spring.main.sources=com.acme.Config,com.acme.ExtraConfig
spring.main.banner-mode=console

MSCode微服务平台框架 mscodecloud.com 是基于Spring Cloud、Spring Boot、Activiti7工作流和阿里巴巴组件,提供所有源码和详尽文档的企业级快速开发平台。

猜你喜欢

转载自blog.csdn.net/iframework/article/details/106578701