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 阅读✓ 已解决
这个提示不够直观,其实它说的是按照你的写法,
Math.pow
应该返回一个int
,但实际返回的却是double
。把
max
改成double,或在赋值前强转一下就行了。