小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

【谷粒商城踩坑記】第九坑 seata報錯問題處理

 硬核項目經(jīng)理 2025-04-28 發(fā)布于湖南

第九坑 seata報錯問題處理

第289課,在 common 中添加了 seata 之后,會導致除 Order 和 Ware 之外的其它服務無法啟動。報錯內容如下:

not support register type: null

原因就是我們在 common 中添加的 seata ,所有服務都會去加載,但是除了教程中的 order 和 ware 之外,其它的服務沒有做相關配置。

解決方案很簡單,要么單獨給 Order 和 Ware 的 pom 中添加 seata ,不在 common 中配置,要么就是其它服務全部排除掉 seata 。我這里使用的是排除的方式。

在其它服務的 common 引用中,添加 exclusion 。

<dependency>
    <groupId>com.atguigu.gulimall</groupId>
    <artifactId>gulimall-common</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <exclusions>
        <exclusion>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-alibaba-seata</artifactId>
        </exclusion>
    </exclusions>
</dependency>

問題解決,繼續(xù)學習吧。

    轉藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多