Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. package codes.recursive.cnms.ords;
  2.  
  3. import io.micronaut.context.annotation.ConfigurationProperties;
  4.  
  5. import java.util.HashMap;
  6. import java.util.Map;
  7.  
  8. @ConfigurationProperties("codes.recursive.cnms.ords")
  9. public class UserConfiguration {
  10.     String clientId;
  11.     String clientSecret;
  12.     String baseUrl;
  13.  
  14.     public Map<String, Object> toMap() {
  15.         Map<String, Object> props = new HashMap<>();
  16.         props.put("clientId", clientId);
  17.         props.put("clientSecret", clientSecret);
  18.         props.put("baseUrl", baseUrl);
  19.         return props;
  20.     }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement