import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;
@Controller
public class ExampleController {
@Autowired
private RequestMappingHandlerMapping mapping;
@RequestMapping("/example")
@ResponseBody
public String handle () {
System.out.println(mapping);
return "got it";
}
}