Created
January 13, 2020 10:40
-
-
Save sonOfRa/bec8cf39cb7530c1ea4b05bc3294c8b6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
your.prefix.name=I'm a name | |
your.prefix.expiration=1000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
@ConfigurationProperties(prefix = "your.prefix") | |
public class ConfigThings { | |
private String name; | |
private int expiration; | |
// Getters, setters | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Controller | |
public class FooController { | |
@Autowired | |
private ConfigThings configThings; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment