Mercurial > hg > SpringPlayground
diff spring-cloud-config-server/src/main/java/de/comline/config/application/ConfigServer.java @ 19:fe6a57f7a2cf
Spring Cloud Config server
author | Dirk Olmes <dirk.olmes@codedo.de> |
---|---|
date | Thu, 17 Sep 2020 17:24:48 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/spring-cloud-config-server/src/main/java/de/comline/config/application/ConfigServer.java Thu Sep 17 17:24:48 2020 +0200 @@ -0,0 +1,17 @@ +package de.comline.config.application; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.config.server.EnableConfigServer; +import org.springframework.context.annotation.Import; + +import de.comline.config.configuration.H2WebConsoleConfig; + +@SpringBootApplication +@EnableConfigServer +@Import(H2WebConsoleConfig.class) +public class ConfigServer { + public static void main(String[] args) { + SpringApplication.run(ConfigServer.class, args); + } +}