Created
October 12, 2014 20:55
-
-
Save altfatterz/ff560895b320d42b10f8 to your computer and use it in GitHub Desktop.
GreetingService
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
@Service | |
public class GreetingService { | |
private static final Logger LOGGER = LoggerFactory.getLogger(GreetingService.class); | |
@Value("${greeting.name:World}") | |
private String name; | |
public String greet() { | |
if (LOGGER.isDebugEnabled()) { | |
LOGGER.debug("Greeting {}", name); | |
} | |
return "Hello " + name; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment