Created
January 2, 2018 19:25
-
-
Save chathurangat/5e024cee01976fc1f7c03fda9a72c5e7 to your computer and use it in GitHub Desktop.
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
import org.springframework.context.annotation.Profile; | |
import org.springframework.stereotype.Service; | |
@Service | |
@Profile("dev") | |
public class DevelopmentEnvironmentService implements EnvironmentService | |
{ | |
@Override | |
public String getCurrentEnvironment() | |
{ | |
return "development_environment"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment