
Springboot项目中踩过的坑
Springboot项目中相关报错解决
Just Dreamchaser
em..
展开
-
Springboot全局拦截器注入RedisTemplate的时候空指针异常
Springboot全局拦截器注入RedisTemplate的时候空指针异常转载 2022-08-09 16:29:55 · 439 阅读 · 1 评论 -
【Maven】maven 打包Could not resolve dependencies for project
maven 打包Could not resolve dependencies for project1.maven 打包Could not resolve dependencies for project项目上使用的是idea ide的多模块话,也就是父子工程,需要模块之间的依赖,比如说服务模块依赖协议模块进行数据打包传送问题是清理了maven仓库后,再对子工程进行mvn package就会...转载 2019-10-15 16:26:50 · 38111 阅读 · 8 评论 -
Invalid bound statement (not found): com.qf.zsm.springbootdynamicdatasource.mapper.TestMapper.insert
这是一个常见的错误,原因是在application.yml配置文件中忘记配置mapper-locations的路径了异常:解决方案:在application.yml中配上mybatis的mapper-locations属性问题解决!...原创 2019-10-30 19:00:23 · 460 阅读 · 0 评论 -
IDEA启动Springboot项目Command line is too long
启动Springboot项目报Command line is too long,根据提示可以知道意思是命令行太长,其实这里是你的本地仓库路径过长local repository,修改repository的路径放在一个比较简洁的路径下就可以解决该问题,亲测有效!...原创 2020-02-05 16:58:46 · 853 阅读 · 0 评论 -
启动项目Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
详细见以下博客链接:https://blog.youkuaiyun.com/imjcoder/article/details/78725267转载 2019-12-25 20:43:58 · 3792 阅读 · 0 评论 -
Could not autowire. No beans of 'xxxx' type found的错误提示
今天在使用idea写代码的时候使用@Autowired注解的时候代码直接报红,Could not autowire. No beans of ‘xxxx’ type found的错误提示.idea使用@Autowire注解的时候代码报红问题的解决方案...转载 2019-12-12 00:11:37 · 353 阅读 · 0 评论 -
踩过的坑:使用BeanUtils.copyProperties复制属性,若对象为List需要new数组然后再转成List
public List<DeliverAddressDTO> selectByUserId(String userId) { //根据userId查询 List<DeliverAddress> deliverAddresses = addressMapper.selectByUserId(userId); //new一...原创 2019-11-13 20:35:58 · 4052 阅读 · 0 评论 -
踩过的坑:java.lang.NumberFormatException:For input String:“section”
首先看到这个错误我就第一时间想到是传参和Controller里的数据类型不一样导致的数据转换异常,但是我发现改了类型之后依然报数据转换异常! 重点是"section"这个字段并不是我的参数,而是数据库中的一个字段,数据库中类型为Integer,但是在反向生成的时候mybatisPlus这个傻逼工具给我加上了" "号,把引号去掉完美得一批!把引号去掉测试完美!~...原创 2019-11-13 15:23:26 · 486 阅读 · 0 评论 -
SpringBoot工程——Caused by: org.yaml.snakeyaml.error.YAMLException: java.nio.charset....
在启动SpringBoot工程的时候报的错误Failed load application.yml properties啥的,错误原因是yml配置文件中的中文注释导致的,编码问题,把注释删掉就能够正常运行了!...原创 2019-11-10 17:36:10 · 806 阅读 · 0 评论