@MapKey is required
這就是mybatis的annotation的一個提醒,可以直接忽略,不影響代碼編譯;
爲啥出現這種情況,因爲我們很爛,sql中返回的對象不願意定義一個 resultMap,select默認就是返回list,不指定resultMap或者resultType,默認就是組裝爲map對象返回;
注意:一定要指定
resultType ="map"
代碼正常解析即可
@MapKey is required
這就是mybatis的annotation的一個提醒,可以直接忽略,不影響代碼編譯;
爲啥出現這種情況,因爲我們很爛,sql中返回的對象不願意定義一個 resultMap,select默認就是返回list,不指定resultMap或者resultType,默認就是組裝爲map對象返回;
注意:一定要指定
resultType ="map"
代碼正常解析即可
https://github.com/zhangbo2008/Trie_with_informationExtraction_and_fuzzy_matchingv2