物联网平台继承组态

Blade 未结 2 128
迈克瑞
迈克瑞 剑侠 2025-04-09 16:33

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

  1. 将组态集成到物联网平台中,启动遇到如下错误image.png

2. image.png

3.


二、你期待的结果是什么?实际看到的又是什么?


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

物联网平台 组态系统

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

2025-04-09 16:19:27.631 ERROR 6196 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 


***************************

APPLICATION FAILED TO START

***************************


Description:


Parameter 0 of constructor in com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DynamicDataSourceAopConfiguration required a single bean, but 2 were found:

- spring.datasource.dynamic-com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DynamicDataSourceProperties: defined in unknown location

- dynamicDataSourceProperties: defined by method 'dynamicDataSourceProperties' in class path resource [com/baomidou/dynamic/datasource/spring/boot/autoconfigure/DynamicDataSourceAopConfiguration.class]


This may be due to missing parameter name information


Action:


Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed


Ensure that your compiler is configured to use the '-parameters' flag.

You may need to update both your build tool settings as well as your IDE.

(See https://github.com/spring-projects/spring-framework/wiki/Upgrading-to-Spring-Framework-6.x#parameter-name-retention)




Process finished with exit code 1

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

2条回答
  • 2025-04-09 16:48

    现在应该是不能直接覆盖集成的,因为组态里有多数据源的配置,看看是不是你现在的物联网框架里也有配置,这俩bean冲突了。

    作者追问:2025-04-17 10:58

    怎么解决呢

    回答: 2025-04-17 11:37

    现在这俩是独立的工程,还没有做集成适配,等支持集成适配的时候,我们计划排期大概在5-6月份。

    0 讨论(0)
  • 2025-04-17 10:42

    怎么解决


    0 讨论(0)
代码语言
提交回复