Guest User

Untitled

a guest
Nov 10th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. spring:
  2. application:
  3. name: cliente-prueba
  4. cloud:
  5. config:
  6. uri: http://localhost:8888
  7.  
  8. server:
  9. port: 8080
  10. management:
  11. endpoints:
  12. web:
  13. exposure:
  14. include: "*"
  15.  
  16. server:
  17. port: 8888
  18. management:
  19. endpoints:
  20. web:
  21. exposure:
  22. include: "*"
  23.  
  24. spring:
  25. application:
  26. name: configserver
  27. cloud:
  28. config:
  29. server:
  30. git:
  31. uri: http://clinker/scm/git/Config-Server
  32. username: myuser
  33. password: mypass
  34. searchPaths: Config-Server
  35.  
  36. palabra: hola
  37.  
  38. @RestController
  39. @RefreshScope
  40.  
  41. public class GestionController {
  42.  
  43.  
  44. @Value("${palabra}")
  45. private String miPalabra;
  46.  
  47. @GetMapping("/palabras")
  48. public ResponseEntity<?> palabras () {
  49.  
  50. return ResponseEntity.ok().body(miPalabra);
  51. }
  52. }
Add Comment
Please, Sign In to add comment