For example a have this controller class
@RestController
@RequestMapping("/api/")
public class A {
@GetMapping("get")
public String someMethod() {
return "Hello world!";
}
@GetMapping("/secondGet")
public String someMethod2() {
return "Hello there!";
}
}
I want “someMethod2” to ignore base path “/api/”, I want to make it possible to ivoke this method by “/secondGet” path, not “/api/secondGet”. Is it possible? Or I need to make another controller class for this?