Skip to content

Instantly share code, notes, and snippets.

@mkheck mkheck/ProviderController
Last active Jun 27, 2017

Embed
What would you like to do?
package com.example.szproviderservice;
import lombok.extern.java.Log;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@SpringBootApplication
public class SzProviderServiceApplication {
public static void main(String[] args) {
SpringApplication.run(SzProviderServiceApplication.class, args);
}
}
@Log
@RestController
class ProviderController {
@GetMapping("/hi")
public String sayHello() {
log.info("Logging GET request to /hi");
return "Hello there!";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.