@Resource=@Autowired+@Qualifier
作者:admin | 分类:未分类 | 浏览:304 | 评论:0
java.lang.NullPointerException: null
at com.springboot.annotation.controller.UserActionController.getById(UserActionController.java:36) ~[classes/:na]
@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);
mapperxml里面配置漏了,namespace
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoC
Powered By Z-BlogPHP 1.7.3
Copyright Your WebSite.Some Rights Reserved.