当mybatis-plus遇到这个报错的时候Update your application’s configuration. The following values are valid: 本人亲测,

当mybatis-plus遇到这个报错的时候Update your application’s configuration. The following values are valid: 本人亲测,已经解决问题啦~




检查代码的application.yml 这个文件是否有这个配置

#  mybatis-plus
  configuration:
    #这个地方开启一个驼峰命名法,就会直接把数据库那边的有下划线的字段去掉,然后按照驼峰命
    #来命名文字了
    #在映射实体或者属性时,将数据库中表名和字段名中的下划线去掉,按照驼峰命名法映射
    map-underscore-to-camel-case: true
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
    global-config:
      db-config:
        id-type: ASSIGN_ID

如果这个配置的话,就直接删掉,这样项目就不会报错啦~

猜你喜欢

转载自blog.csdn.net/qq_53135313/article/details/130056136
今日推荐