當mybatis-plus遇到這個報錯的時候Update your application’s configuration. The following values are valid: 本人親測,已經(jīng)解決問題啦~
檢查代碼的application.yml 這個文件是否有這個配置文章來源:http://www.zghlxwxcb.cn/news/detail-813248.html
# mybatis-plus
configuration:
#這個地方開啟一個駝峰命名法,就會直接把數(shù)據(jù)庫那邊的有下劃線的字段去掉,然后按照駝峰命
#來命名文字了
#在映射實體或者屬性時,將數(shù)據(jù)庫中表名和字段名中的下劃線去掉,按照駝峰命名法映射
map-underscore-to-camel-case: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
global-config:
db-config:
id-type: ASSIGN_ID
如果這個配置的話,就直接刪掉,這樣項目就不會報錯啦~文章來源地址http://www.zghlxwxcb.cn/news/detail-813248.html
到了這里,關(guān)于當mybatis-plus遇到這個報錯的時候Update your application’s configuration. The following values are valid: 本人親測,的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!