tx-lcn icon indicating copy to clipboard operation
tx-lcn copied to clipboard

事务发起方或参与方结合阿里数据源启动报错

Open 1060352728 opened this issue 6 years ago • 12 comments

_20190225221114 Uploading 微信图片_20190225221219.png…

1060352728 avatar Feb 25 '19 14:02 1060352728

什么错?

xlorne avatar Feb 26 '19 01:02 xlorne

@1991wangliang _20190226091904

1060352728 avatar Feb 26 '19 02:02 1060352728

从这个错误上来看应该与框架没有太大关系,你直接把异常以代码的形式贴过来就行。

xlorne avatar Feb 26 '19 04:02 xlorne

@1991wangliang

    <dependency>
        <groupId>com.alibaba</groupId>
        <artifactId>druid-spring-boot-starter</artifactId>
        <version>1.1.10</version>
    </dependency>

加上这个就报错 errorMsg.txt

1060352728 avatar Feb 26 '19 12:02 1060352728

你看看springcloud版本与druid的兼容性问题。

1060352728 [email protected] 于2019年2月26日周二 下午8:14写道:

@1991wangliang https://github.com/1991wangliang

<dependency>

    <groupId>com.alibaba</groupId>

    <artifactId>druid-spring-boot-starter</artifactId>

    <version>1.1.10</version>

</dependency>

加上这个就报错 errorMsg.txt https://github.com/codingapi/tx-lcn/files/2905325/errorMsg.txt

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/codingapi/tx-lcn/issues/263#issuecomment-467415604, or mute the thread https://github.com/notifications/unsubscribe-auth/AFAJo_nOukVKt65wysA1WTsVbw1ObPprks5vRSUVgaJpZM4bP9YC .

xlorne avatar Feb 27 '19 02:02 xlorne

@1991wangliang 版本应该没问题,我去掉lcn就好了,我想可能是哪里有冲突了,目前我也不清楚, springboot 2.1.3.RELEASE springcloud Greenwich.RELEASE log4jdbc-log4j2-jdbc4.1-1.16 druid-spring-boot-starter-1.1.10 数据库配置信息如下文件: 数据库配置.txt

1060352728 avatar Feb 27 '19 02:02 1060352728

使用Druid的普通依赖就好,使用Druid的SpringBoot-starter会有这个问题

TongRuii avatar Feb 27 '19 09:02 TongRuii

@TongRuii 好的,我试试

1060352728 avatar Feb 27 '19 09:02 1060352728

@1991wangliang 不知道后续lcn会不会支持阿里新版数据源druid-spring-boot-starter?

1060352728 avatar Feb 27 '19 11:02 1060352728

starter 跟 你这样配置差异不大的,只是不需要你自己配置而已

xlorne avatar Mar 04 '19 02:03 xlorne

@1991wangliang starter 是不需要配置,我换成普通的druid是没有问题的,使用starter启动会报错的,这个存在冲突问题

1060352728 avatar Mar 04 '19 03:03 1060352728

我也遇到这个问题了,cglib代理错误

18705320883 avatar Dec 18 '19 07:12 18705320883