renren-api 运行报错

提问 未结 1 72
linuxer@gino
悬赏:20积分
版本:renren-security 3.0.0 开发环境:JDK8 ,IDEA
报错信息如下: [pre] 2021-11-17 08:17:44.572 ERROR 30926 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: Failed to bind properties under 'mybatis-plus.global-config.db-config.id-type' to com.baomidou.mybatisplus.annotation.IdType: Property: mybatis-plus.global-config.db-config.id-type Value: ID_WORKER Origin: class path resource [application.yml] - 64:16 Reason: failed to convert java.lang.String to com.baomidou.mybatisplus.annotation.IdType (caused by java.lang.IllegalArgumentException: No enum constant com.baomidou.mybatisplus.annotation.IdType.ID_WORKER) Action: Update your application's configuration. The following values are valid: ASSIGN_ID ASSIGN_UUID AUTO INPUT NONE [/pre] 根据报错大概是说不能使用 ID_WORKER,这个是无效值。可是我们拿到的源码默认就是这个啊? mybatisplus 是 3.4.3 版本(源码默认的)
回帖
  • linuxer@gino
    2021-11-17
    https://baomidou.com/guide/annotation.html#tableid ID_WORKER已弃用 分布式全局唯一ID 长整型类型(please use ASSIGN_ID)
    0 回复