当前使用版本(必填,否则不予处理)
3.4.3
该问题是如何引起的?(确定最新版也有问题再提!!!)
原来版本是3.4.2,升级3.4.3后自定义生成器异常
看了源码发现多了IdentifierGeneratorAutoConfiguration配置类里面也注入了同样的IdentifierGenerator从而导致下面错误信息
重现步骤(如果有就写完整)
报错信息
Comment From: miemieYaho
把你自己的类的 order 注解去掉呢
Comment From: onvertex
把你自己的类的顺序注释掉呢
去掉了 不行
Comment From: nancheung
Configuration类不能使用 @order ,不能用来控制AutoConfiguration
方法1:@AutoConfigureBefore(IdentifierGeneratorAutoConfiguration.class)
方法2:将CustomIdGenerator使用 @Bean 定义成bean,再使用 @Primary
Comment From: qmdx
upp