Skip to content

Instantly share code, notes, and snippets.

@bsideup
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bsideup/b189a9015ba7b6556135 to your computer and use it in GitHub Desktop.
Save bsideup/b189a9015ba7b6556135 to your computer and use it in GitHub Desktop.
apply plugin: 'spring-boot'
repositories {
maven {
url 'http://repo.spring.io/milestone'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-config-server:1.0.0.RC2'
compile "org.springframework.boot:spring-boot-starter-security"
}
package com.creativemobile.dragracing.config.server;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.config.server.EnableConfigServer;
import org.springframework.context.annotation.Configuration;
@EnableAutoConfiguration
@EnableConfigServer
public class ConfigApplication {
public static void main(String[] args) {
new SpringApplicationBuilder(ConfigApplication.class)
.properties("spring.config.name=configserver")
.run(args);
}
}
server:
port: 8888
spring:
jackson:
serialization:
INDENT_OUTPUT: true
cloud:
config:
server:
git:
uri: https://***/***/***.git
username: ***
password: ***
security:
user:
password: 'testpass'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment