Differences

This shows you the differences between two versions of the page.

Link to this comparison view

kb:central_configuration_client [2016/08/08 09:48] (current)
yehuda created
Line 1: Line 1:
 +====== Central configuration client ======
 +<code xml pom.xml>
 +<dependencies>
 + <!-- config -->
 + <dependency>
 + <groupId>org.springframework.cloud</groupId>
 + <artifactId>spring-cloud-starter-config</artifactId>
 + </dependency>
 + <dependency>
 + <groupId>org.springframework.boot</groupId>
 + <artifactId>spring-boot-starter-actuator</artifactId>
 + </dependency>
 + <dependency>
 + <groupId>org.springframework.boot</groupId>
 + <artifactId>spring-boot-starter-web</artifactId>
 + </dependency>
 +</dependencies>
  
 +<dependencyManagement>
 + <dependencies>
 + <dependency>
 + <groupId>org.springframework.cloud</groupId>
 + <artifactId>spring-cloud-starter-parent</artifactId>
 + <version>Angel.SR4</version>
 + <type>pom</type>
 + <scope>import</scope>
 + </dependency>
 + </dependencies>
 + </dependencyManagement>
 +</code>
 +
 +
 +<code java>
 +// ADD Refresh scope
 +@RefreshScope
 +public class LoginController {
 + // Add varibole
 + @Value("${testaaa}")
 + private String testaaa;
 +}
 +</code>
 +
 +<code ini bootstrap.properties>
 +spring.application.name=service-auth
 +spring.cloud.config.uri=http://localhost:8080/eco-central-config
 +</code>
kb/central_configuration_client.txt ยท Last modified: 2016/08/08 09:48 by yehuda
Back to top
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0