Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- spring:
- application:
- name: cliente-prueba
- cloud:
- config:
- uri: http://localhost:8888
- server:
- port: 8080
- management:
- endpoints:
- web:
- exposure:
- include: "*"
- server:
- port: 8888
- management:
- endpoints:
- web:
- exposure:
- include: "*"
- spring:
- application:
- name: configserver
- cloud:
- config:
- server:
- git:
- uri: http://clinker/scm/git/Config-Server
- username: myuser
- password: mypass
- searchPaths: Config-Server
- palabra: hola
- @RestController
- @RefreshScope
- public class GestionController {
- @Value("${palabra}")
- private String miPalabra;
- @GetMapping("/palabras")
- public ResponseEntity<?> palabras () {
- return ResponseEntity.ok().body(miPalabra);
- }
- }
Add Comment
Please, Sign In to add comment