Last active
December 10, 2015 13:02
-
-
Save relax-more/c65398d1c98e5f90add3 to your computer and use it in GitHub Desktop.
How to use ConfigurationProperties (feel so good.)
This file contains 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
kamera: | |
pentax: | |
lens: 18-50 zoom | |
This file contains 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
@Component | |
@ConfigurationProperties(prefix = "kamera") | |
@Data | |
public class KameraSetting { | |
private Kamera pentax; | |
@Data | |
public static Kamera{ | |
private String lens; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment