gateway服务无法添加blade-starter-log包

Blade 未结 2 191
879569726
879569726 剑圣 2023-12-18 17:01

一、该问题的重现步骤是什么?

1. 在gateway服务 pom.xml 文件添加

    org.springblade
    blade-starter-log

2. Failed to process import candidates for configuration class [org.springblade.gateway.GateWayApplication]; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/web/servlet/config/annotation/WebMvcConfigurer.class] cannot be opened because it does not exist

3.


二、你期待的结果是什么?实际看到的又是什么?我需要把网关添加logback日志


三、你正在使用的是什么产品,什么版本?在什么操作系统上?商业版 3.2.0的


四、请提供详细的错误堆栈信息,这很重要。


五、若有更多详细信息,请在下面提供。

2条回答
  • Gateway引入了web模块导致的错,具体看这个帖子:https://sns.bladex.cn/q-1631.html

    0 讨论(0)
  • 2023-12-19 14:36

    能提供解决办法吗?


    作者追问:2023-12-20 01:07

    gateway不支持引入blade-starter-log,因为这依赖必须要spring-web,而Gateway基于webflux,是与spring-web冲突的。

    0 讨论(0)
提交回复