Skip to content

Instantly share code, notes, and snippets.

@chathurangat
Created January 2, 2018 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chathurangat/5e024cee01976fc1f7c03fda9a72c5e7 to your computer and use it in GitHub Desktop.
Save chathurangat/5e024cee01976fc1f7c03fda9a72c5e7 to your computer and use it in GitHub Desktop.
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