
SpringBoot
hongChengliu
此人很懒,什么都没有写
展开
-
解决spring boot+mybatis 调用mapper报错 Invalid bound statement (not found)
第一检查你的mapper.xml的namespace是否对应的你的mapper接口第二检查你的application.properties的配置mybatis.mapper-locations=classpath:mapper/*.xml。是否对应了mapper.xml的路劲第三检查你的mapper或service文件有没有扫描注解@Mapper或@Service...原创 2019-11-28 15:13:33 · 482 阅读 · 0 评论 -
nested exception is org.apache.ibatis.binding.BindingException: Parameter 'xxx' not found.
这是因为你的@param(“name”) 里设置的值和关键字#{ name} 里面的不匹配原创 2019-11-20 18:10:01 · 440 阅读 · 0 评论 -
Consider defining a bean of type 'xxx.xxx' in your configuration.
这是因为你的spring扫描不到你的这个文件解决办法:如果你是service类 出现了问题,就在类上面加一个@service注解其他同理,加注解就行了原创 2019-11-20 16:53:40 · 203 阅读 · 0 评论 -
使用@ConfigurationProperties注解映射数据
package com.example.demo3;import org.springframework.boot.context.properties.ConfigurationProperties;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bin...原创 2019-04-11 17:32:40 · 626 阅读 · 0 评论