![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
bug日记本
叫我小二哥
to be No.1.
展开
-
(亲测好用的解决方法)springboot2.x整合jpaRepository中的坑
今日折腾的时候发现了一起在1.5的时候整合jpa可以使用的findOne方法突然找不到了,如下: 可以看到这个方法里面不能传入String/Integer类型的值,所以百度了一番。有网友给了一个通过get()再取值的方法,测试了一番并无效果。通过浏览调用方法列表发现了一个getOne()的方法,返回值类型和传递的参数都符合就试了一下测试通过这是由于jpa懒加载的问题引起的,可以在测试关...原创 2018-12-28 22:34:14 · 1909 阅读 · 0 评论 -
springbootBug满天飞之yml文件输入com.mysql.jdbc.Driver出现cannot resolve class。。。
发生问题的原因为mysql-connect的jar包没有下载下来,或者是出现了错误,解决办法:1.查看pom文件是否缺少依赖<dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId&a原创 2018-11-23 20:43:45 · 5324 阅读 · 3 评论 -
springboot引用mybatis plus调用方法抛出无效的绑定异常Invalid bound statement (not found)
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.rx.mapper.UserInfoMapper.selectOne at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod....原创 2019-08-29 09:18:54 · 8003 阅读 · 5 评论 -
springboot启动报错If you want an embedded database (H2, HSQL or Derby), please put it on the classpath
解决办法:在@SpringbootApplication中添加属性exclude=DataSourceAutoConfiguration.class原创 2019-02-28 19:28:35 · 6199 阅读 · 4 评论 -
idea最新版无法创建springboot项目的问题,亲测
最近在创建springboot项目中有时候会经常发生cantnot download https://start.spring.io错误,所以特别纪念一下解决办法原创 2019-02-28 18:28:06 · 9185 阅读 · 7 评论 -
java.sql.SQLException: Can not issue data manipulation statements with executeQuery()
大概是因为你将update,insert,delete操作也用了executeQuery(),正确应该使用executeUpdate()这个方法,注意:这些方法中不需要再添加sql语句执行,否则会出错误...原创 2019-01-04 22:24:37 · 1046 阅读 · 0 评论 -
Correct the classpath of your application so that it contains a single, compatible version of com.go
错误:2019-10-11 10:58:25.896 INFO 24488 --- [ main] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application w...原创 2019-10-11 11:05:51 · 1490 阅读 · 0 评论