JAVA-13823: Review module names (#12628)

* JAVA-13823: rename struts-2 to struts

* JAVA-13823: rename spring-cloud-bus submodules

* JAVA-13823: rename spring-cloud-config submodules

* JAVA-13823: rename spring-cloud-data-flow submodules

* JAVA-13823: rename spring-cloud-hystrix submodules

* JAVA-13823: rename spring-cloud-netflix-sidecar submodules

* JAVA-13823: rename spring-cloud-zookeeper submodules

* JAVA-13823: rename spring-cloud-zuul-fallback submodules

* JAVA-13823: rename spring-security-web-angular submodules

Co-authored-by: Dhawal Kapil <dhawalkapil@gmail.com>
This commit is contained in:
freelansam
2022-08-26 16:20:12 +05:30
committed by GitHub
parent eb24cfa8be
commit 46499a2419
195 changed files with 274 additions and 48 deletions
@@ -0,0 +1,28 @@
package com.baeldung.spring.cloud.config.client;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
@SpringBootApplication
@RestController
public class ConfigClient {
@Value("${user.role}")
private String role;
@Value("${user.password}")
private String password;
public static void main(String[] args) {
SpringApplication.run(ConfigClient.class, args);
}
@GetMapping(value = "/whoami/{username}", produces = MediaType.TEXT_PLAIN_VALUE)
public String whoami(@PathVariable("username") String username) {
return String.format("Hello %s! You are a(n) %s and your password is '%s'.\n", username, role, password);
}
}
@@ -0,0 +1,3 @@
spring.application.name=config-client
spring.profiles.active=development
spring.config.import=optional:configserver:http://root:s3cr3t@localhost:8888