Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
RestController for Byte Buddy instrumentation demo
public class HelloController {
private static final String template = "Hello, %s!";
public String greeting(
@RequestParam(value = "name", defaultValue = "World") String name) {
return String.format(template, name);
public String showUserAgent(HttpServletRequest request) {
return request.getHeader("user-agent");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment