Skip to content

Instantly share code, notes, and snippets.

@Tatsiana888
Tatsiana888 / gist:3747bb9a9b17b314e35126922bfdc8d0
Created May 15, 2017 09:28
Cloud Config Server Dependencies
dependencies {
compile('org.springframework.cloud:spring-cloud-config-server:1.3.0.RELEASE')
}
dependencies {
compile('org.springframework.cloud:spring-cloud-config-server:1.3.0.RELEASE')
}
@EnableConfigServer
class Application extends GrailsAutoConfiguration {
static void main(String[] args) {
GrailsApp.run(Application, args)
}
}
spring:
application:
name: dev-portal
profiles:
active: native
cloud:
config:
server:
bootstrap: true
prefix: /config
spring:
application:
name: dev-portal (1)
profiles:
active: native
cloud:
config:
server:
bootstrap: true (2)
prefix: /config (3)
spring:
application:
name: server-service
profiles:
active: native
cloud:
config:
server:
bootstrap: true // flag to indicate that the server should configure itself from its own remote repository
prefix: /config // changing the location of the server endpoints
spring:
application:
name: server-service
profiles:
active: native
cloud:
config:
server:
bootstrap: true // flag to indicate that the server should configure itself from its own remote repository
prefix: /config // changing the location of the server endpoints
class Configuration {
String name
static hasMany = [configLines: ConfigLine]
static mapping = {
configLines cascade: 'all-delete-orphan'
}
}
class Configuration {
String name // service name for what is configuration (microcervice-app)
static hasMany = [configLines: ConfigLine]
static mapping = {
configLines cascade: 'all-delete-orphan'
}
}
class Configuration {
String name // service name for what is configuration
static hasMany = [configLines: ConfigLine]
static mapping = {
configLines cascade: 'all-delete-orphan'
}
}