-
-
Save bsideup/b189a9015ba7b6556135 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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