1.最近springBoot通過mybatis的註解進行數據庫訪問,出現幾次如下錯誤
org.apache.ibatis.builder.BuilderException: Could not find value method on SQL annotation. Cause: org.apache.ibatis.builder.BuilderException: Error creating SqlSource for SqlProvider. Method 'get' not found in SqlProvider 'com.dhl.component.provider.UserProvider'.
2.問題代碼
3因爲在Mapper接口裏面,直接引入這個provider類,並沒有實例化,所以provider下面的方面必須爲public