Created
January 23, 2019 00:55
-
-
Save sjyun/6291d1017bf59d5d4ed66471ed29a79e to your computer and use it in GitHub Desktop.
profile
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
@Profile("dev") | |
@Bean("theConfiguredDate") | |
public Instant theConfiguredFixedDate(){ | |
return Instant.ofEpochMilli(1527854742); | |
} | |
@Profile("!dev") | |
@Bean | |
public Instant theConfiguredDate(){ | |
return Instant.now(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment