![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java 碰到的问题
文章平均质量分 80
刘德华一不小心就打代码
比你优秀的人都还在努力,你有什么理由不努力
展开
-
com.alibaba.fastjson.JSONObject cannot be cast to com.alibaba.fastjson.JSONObject报错处理
com.alibaba.fastjson.JSONObject cannot be cast to com.alibaba.fastjson.JSONObject报错处理原创 2023-07-04 16:37:37 · 7377 阅读 · 0 评论 -
redis分布式锁的原理和实现方式
redis分布式锁的原理和实现方式原创 2023-03-21 10:27:22 · 233 阅读 · 0 评论 -
@Transactional配置详解
@Transactional配置原创 2023-03-03 10:33:24 · 811 阅读 · 0 评论 -
Transaction rolled back because it has been marked as rollback-only
Transaction rolled back because it has been marked as rollback-only原创 2023-03-03 10:08:29 · 3220 阅读 · 0 评论 -
springboot maven 打包失败 Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2
springboot maven 打包失败 Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2原创 2023-03-02 16:41:11 · 565 阅读 · 0 评论 -
Mybatis一对多查询,复合查询,resultMap标签中的collection标签
mybatis一对多查询,collection标签原创 2023-03-02 16:30:11 · 744 阅读 · 0 评论 -
java 集合,实现获取两个list交集,并集,差集
java 集合,实现获取两个list交集,并集,差集。原创 2023-03-01 16:27:54 · 1003 阅读 · 0 评论 -
XML文件中,Mybatis或MybatisPlus查询出的Sql结果未映射到对应得实体类上
xml文件中,Mybatis或者MybatisPlus查询出的Sql结果未映射到对应的实体类上原创 2023-03-01 16:22:03 · 2970 阅读 · 0 评论 -
springboot 启动报错java.nio.charset.MalformedInputException: Input length=2
原因:1.yml配置文件写得有问题,比如:格式有问题(上下两个有没有空两个格)等2.yml中文编码问题解决方法:1.idea中打开settings–Editor-File Econdings,设置yml为UTF-82.如果还是不行,那么就将yml内容复制,再把application.yml删除,再重新创建改application.yml文件,将内容放进去。properties文件也是这样处理....原创 2021-06-22 16:56:07 · 806 阅读 · 1 评论 -
springboot启动报错Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary
springboot 启动报错报错内容:Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its报错截图:一开始看到这个很懵逼,明明是java项目,怎么跟Kotlin有关系解决方法:build --> rebuild project...原创 2021-06-22 16:44:23 · 22691 阅读 · 16 评论 -
Error creating bean with name ‘eurekaAutoServiceRegistration‘: Singleton bean creation not allowed处理
springcloud 启动包错:org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'eurekaAutoServiceRegistration': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a be原创 2020-08-16 18:06:27 · 2845 阅读 · 0 评论 -
Correct the classpath of your application so that it contains a single, compatible version of xxx报错
项目启动时报错:DescriptionAn attempt was made to call a method that does not exist. The attempt was made from the following location: ....省略..The method's class, javax.persistence.PersistenceContext, is available from the following locations: file:/原创 2020-07-01 10:11:50 · 486 阅读 · 0 评论 -
Maven打包ERROR OS=Windows and the assembly descriptor contains a *nix-specific root-relative-reference
maven打包的时候报错:OS=Windows and the assembly descriptor contains a *nix-specific root-relative-reference (starting with slash)原因:在windows上执行assembly任务,但是它包含了相对于linux的路径解决方法:将outputDirectory节点直接闭合;或...原创 2020-04-22 09:18:43 · 4443 阅读 · 0 评论 -
springboot 整合shiro 报错org.thymeleaf.processor.attr.AbstractTextChildModifierAttrProcessor
原本的thymeleaf-extras-shiro 依赖: <dependency> <groupId>com.github.theborakompanioni</groupId> <artifactId>thymeleaf-extras-shiro</artifactId> <version>...原创 2020-04-15 10:42:45 · 543 阅读 · 0 评论 -
maven打包报错:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.6:test 的处理方法
一.情况:公司临时要弄个demo项目,springboot的,将项目进行打包时,发现报错:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.6:test (default-test) 后面不管是clean,还是install 都是这个问题。二.原因:单元测试部分的代码有问题,并没有全部通过。...原创 2020-04-02 11:47:57 · 298 阅读 · 0 评论