- 博客(17)
- 资源 (1)
- 收藏
- 关注
原创 seata客户端启动报:not support register type: null
seata客户端启动报:not support register type: null
2022-03-10 13:18:08
1542
原创 seata客户端启动ClassNotFoundException: io.seata.spring.annotation.datasource.SeataAutoDataSourceProxyCrea
seata客户端启动:ClassNotFoundException: io.seata.spring.annotation.datasource.SeataAutoDataSourceProxyCrea
2022-03-10 12:00:14
1806
2
原创 seata客户端启动:java.lang.ClassNotFoundException: io.netty.util.concurrent.FastThreadLocalThread
seata客户端启动:java.lang.ClassNotFoundException: io.netty.util.concurrent.FastThreadLocalThread
2022-03-10 11:56:25
534
原创 spring-boot-starter-parent 升级到2.3.0.RELEASE pom.xml报Unknown
spring-boot 升级后pom.xml第一行报Unknown错
2022-03-02 10:45:19
916
原创 spring cloud config Could not resolve placeholder
服务端 pom.xml客户端:这2个jar一定要区分。
2018-11-27 09:21:38
1844
1
原创 spring boot 自定义后缀后 图片上传问题
今天在做spring boot图片上传的时候 获取MultipartFile file 一直为null。最后调试发现是因为我在项目中设置访问自定义后缀 .htm。后来找到这位大神的文章解决了。https://www.bbsmax.com/A/gGdX4KEd4m/添加图片解析器还需要添加 commons-fileupload.jar...
2018-11-22 14:57:34
483
原创 spring boot JPA 扫描不到repository问题
今天做spring boot 集成jpa 的时候 ,项目启动 控制台没有数据库相关的信息,也不能自动建表,还扫描不到repository 。最后跟以前的springboot jpa 项目比较 发现jar版本不一致,其他基本一样。我采用的是org.springframework.bootspring-boot-starter-parent2.0.3.RELEASE mysql版本是默...
2018-11-16 16:27:16
7311
原创 eclipse启动2个EurekaClient 实例
1、创建EurekaService import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;import org.springframework.cloud.netflix.eureka.server.Enabl...
2018-11-08 12:07:17
3704
原创 uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deploye
行报错:uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application缺少jar javax.servlet jstl 1.2 taglibs sta
2017-12-12 15:28:13
288
原创 mybatis+redis二级缓存
项目使用的是spring+mybatis+mysql5.5 系统运行后一旦执行复杂查询 mysql 服务器cpu疯狂飙升(为什么要执行复杂查询 因为我打不赢产品 一个列表横不得把系统所有数据都展示出来)。闹骚发完了说正事。那首先想到是优化sql ,一顿优化 风险太大,效果不明显。 然后加缓存 先上mybatis的一级缓存 ,但是查资料说是只在一个sqlSession下有效。我在service方法
2017-11-16 10:38:30
888
原创 Could not obtain transaction-synchronized Session for current thread
spring4. 3 + hibernate4.3 执行sessionFactory.getCurrentSession() 抛 Could not obtain transaction-synchronized Session for current thread 异常。解决方法:添加 openSessionInView org.springframework.orm.hib
2017-11-02 20:48:43
231
翻译 maven项目发布后lib下是空的
今天新建了maven项目转成web项目部署运行报jar文件找不到,打开tomcat下webapps 找到 发现项目下的lib是空的。解决方案:项目右键 --》properties --》Deployment Assembly --》 add 把Maven Dependencies 添加进去就可以了。ok 解决。
2017-10-19 20:23:39
1771
原创 spring4.3.x与apach-cxf.2.7x jar冲突
升级spring到4.3.3.RELEASE 会与apache-cxf.2.7.x 冲突解决方法: org.apache.cxf apache-cxf 3.1.4 pom 3.1.0~3.1.4 之间没有问题,再升级到3.1.4 以上就又有冲突。最终决定使用3.1.4
2017-10-11 21:03:54
723
原创 spring4.3.3.x 与activemq-all5.14.0 jar冲突
在使用更新springjar包导4.3.3系统报错:Caused by: java.lang.NoSuchMethodError: org.springframework.core.serializer.support.DeserializingConverter.(Ljava/lang/ClassLoader;)V at org.springframework.data.redis.ser
2017-10-11 20:48:55
2684
原创 spring + redis 集群
项目中的reids要从单机版更换到集群配置,我使用的是spring-data-redis.jar 主要难点就是jar包各种冲突。 4.3.3.RELEASE 1.2.17 1.7.2.RELEASE 2.9.0 org.springframework spring-webmvc ${springframework} o
2017-10-11 20:19:15
270
原创 不是group by表达式
今天写了一个hql的group by查询语句 老是报 不是group by 表达式..hql : select sc.student ,count(sc.student) from StudentClass group by sc.student 后来把它改成: select sc.student.id ,count(sc.student.id)...
2010-02-03 12:29:33
838
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人