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