Skip to content

Instantly share code, notes, and snippets.

@evrentan
Created August 22, 2021 11:41
Show Gist options
  • Save evrentan/b9e96189c6bc966818d12bd7afcd7faa to your computer and use it in GitHub Desktop.
Save evrentan/b9e96189c6bc966818d12bd7afcd7faa to your computer and use it in GitHub Desktop.
Adding @EnableConfigServer to SpringCloudConfigApplication class
package tan.labs.springcloudconfig.spring.spring;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer;
@SpringBootApplication
@EnableConfigServer
public class SpringCloudConfigApplication {
public static void main(String[] args) {
SpringApplication.run(SpringCloudConfigApplication.class, args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment