Skip to content

Instantly share code, notes, and snippets.

@altfatterz
Created October 12, 2014 20:55
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 altfatterz/ff560895b320d42b10f8 to your computer and use it in GitHub Desktop.
Save altfatterz/ff560895b320d42b10f8 to your computer and use it in GitHub Desktop.
GreetingService
@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