Spring Boot 3.2.2 连接 RocketMQ 5.1.2 报错如何解决?
Started container failed. DefaultRocketMQListenerContainer{consumerGroup='topic_02_CONSUMER', namespace='', namespaceV2='', nameServer='192.168.50.20:9876', topic='topic_02', consumeMode=CONCURRENTLY, selectorType=TAG, selectorExpression='*', messageModel=CLUSTERING', tlsEnable=false, instanceNam...
1 回答974 阅读✓ 已解决
在spring配置文件(通常是springContext.xml)中配置数据库连接池bean的注入,一般该bean的id="dataSource",该bean会有一堆参数你可以直接把你的数据库配置写在这里。
通常会抽出来在配置文件中写,要先在spring配置文件中配置扫描jdbc.properties这个配置文件,然后在spring配置文件中引用: