BAEL-4658: Upgrade to Cucumber 6.8.0 (#10121)
This commit is contained in:
@@ -4,18 +4,16 @@ 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) {
|
||||
public String sayHello() {
|
||||
return "hello";
|
||||
}
|
||||
|
||||
@PostMapping("/baeldung")
|
||||
public String sayHelloPost(HttpServletResponse response) {
|
||||
public String sayHelloPost() {
|
||||
return "hello";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
package com.baeldung;
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
public class VersionController {
|
||||
|
||||
@RequestMapping(method = { RequestMethod.GET }, value = { "/version" })
|
||||
@GetMapping("/version")
|
||||
public String getVersion() {
|
||||
return "1.0";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user