我拆过的坑cycx

查询一下!

nodejs 安装express最简洁的方法 三步

vscode常用快捷键,不断添加!

springboot使用CommonsMultipartResolver上传报错java.lang.ClassCastException

Spring报错-‘artifactId‘ with value ‘xxxx‘ does not match a valid id pattern.错误

错误原因: POM文件为gav格式, 不允许中文字符或空格 ,仅使用下划线,数字,字母 将artifactId属性值改为符合要求的形式即可 1 2020_11_15

@Resource=@Autowired+@Qualifier 用在接口实现中,指定name小写

@Resource=@Autowired+@Qualifier


wired.png


作者:admin | 分类:未分类 | 浏览:271 | 评论:0

java.lang.NullPointerException: null at com.springboot.annotation.考虑这个空指针异常是注解没有造成的

java.lang.NullPointerException: null

at com.springboot.annotation.controller.UserActionController.getById(UserActionController.java:36) ~[classes/:na]


拿不到数据:public User AddUser(@RequestBody User user)

{
 &n

@GetMapping("{id}")

@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 'reques

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcCo

@PathVariable

    @RequestMapping("/path/{id}/{type}")

    public ModelAndView path(@PathVariable(required = false) int id,

                          &nbs

@RequestParam

param(@RequestParam("id") int id){


    System.out.println("id="+id);

    ModelAndView view = new ModelAndView(PAGE);

    view.addObject("id",id);


spring常用注解

springboot 常用注解.png

1spring2.png

org.springframework.beans.factory.BeanCreationException: Error creating bean with sqlSessionFactory

mapperxml里面配置漏了,namespace 


org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoC

<< 1 2 3 4 > >>

Powered By Z-BlogPHP 1.7.3

Copyright Your WebSite.Some Rights Reserved.