Merge pull request #7169 from amit2103/BAEL-14274-4

[BAEL-14274] - Fixed article code for https://www.baeldung.com/swagge…
This commit is contained in:
Loredana Crusoveanu
2019-07-17 15:15:36 +03:00
committed by GitHub

View File

@@ -0,0 +1,14 @@
package org.baeldung.web.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Controller
public class CustomController {
@RequestMapping(value = "/custom", method = RequestMethod.POST)
public String custom() {
return "custom";
}
}