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
commit d3af7f38c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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";
}
}