Grzegorz Piwowarek 01406f1c8b Cucumber fix (#2761)
* Rest-assured fix

* Cucumber fix
2017-10-19 17:51:31 +02:00

22 lines
546 B
Java

package com.baeldung;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletResponse;
@RestController
public class BaeldungController {
@GetMapping("/hello")
public String sayHello(HttpServletResponse response) {
return "hello";
}
@PostMapping("/baeldung")
public String sayHelloPost(HttpServletResponse response) {
return "hello";
}
}