@RestController
@RequestMapping("user")
public class RestFullController {
@GetMapping
public User get(){
User user = new User(1,"2wa","m
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcCo
@RequestMapping("/path/{id}/{type}")
public ModelAndView path(@PathVariable(required = false) int id,
&nbs
param(@RequestParam("id") int id){
System.out.println("id="+id);
ModelAndView view = new ModelAndView(PAGE);
view.addObject("id",id);
Powered By Z-BlogPHP 1.7.3
Copyright Your WebSite.Some Rights Reserved.