Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- application.yml
- ---
- Srping: ...
- # Aqui seu Map
- integracoes:
- http:
- google:
- health-check-path: ''
- url: https://www.google.com/
- telegram:
- health-check-path: ''
- url: https://web.telegram.org/
- docs-spring:
- health-check-path: ''
- url: https://docs.spring.io/
- app.cache.ttls:
- produtos-id: PT15M
- ---
- /**
- * Aqui vc vai mapear suas configuraรงรตes
- * @author eltonsandre
- * date 01/05/2020 18:08
- */
- @Data
- @Component
- @ConfigurationProperties(prefix = "integracoes")
- public class IntegracaoProperties {
- private Map<String, IntegracaoHttp> http;
- @Data
- public static class IntegracaoHttp {
- private String healthCheckPath;
- private String url;
- }
- }
- ---
- /**
- * @author eltonsandre
- * date 19/04/2019 12:30
- */
- @Data
- @Component
- @ConfigurationProperties(prefix = "app.cache")
- public class CacheTTLProperties {
- private Map<String, Duration> ttls;
- }
- ---
Add Comment
Please, Sign In to add comment