Comments (6)
这是因为通用mapper没有处理通用方法导致的。
如果你用的spring boot,可以直接用 mapper-starter,如果不是 boot,你可以参考xml 中tk.mybatis.spring.mapper.MapperScannerConfigurer,用注解方式配置一个。
from mybatis-spring-boot.
还要有其他配置吗?
from mybatis-spring-boot.
一样的问题,不知道怎么解决
from mybatis-spring-boot.
1.2.1版本的starter已解决此问题https://github.com/abel533/mapper-boot-starter
from mybatis-spring-boot.
高版本会出现这个问题,我使用1.1.4
就没问题了。
from mybatis-spring-boot.
用 1.2.3
from mybatis-spring-boot.
Related Issues (20)
- 将 mybatis-spring-boot-starter:1.3.2升级2.0.0 程序报错 HOT 1
- 请问此项目不支持yml配置吗?一定要使用properties? HOT 1
- 分页
- 在springboot中如何配置自定义的mybatis拦截器和分页拦截器的执行书顺序 HOT 3
- 升级版2.0.0及以上报异常Caused by: java.lang.NoSuchMethodException: tk.mybatis.mapper.provider.base.BaseInsertProvider.<init>()。并且@tk.mybatis.spring.annotation.MapperScan("com.sinosoft.**.domain") HOT 2
- BaseResultMap怎么生成了两份 HOT 1
- [BUG] SpringBoot 2.1.7 异常信息如下 HOT 1
- 自定义interceptor和pageInterceptor执行顺序是如何 的,有没有办法指定执行顺序 HOT 1
- 当使用Example查询实体中包含名为rank的字段,在mysql8中会语法异常 HOT 1
- 当第一页就查出全部行数时不排序
- 建议添加支持JPA功能
- 请问在Spring boot 下单元测试使用@MybatisTest注解时,如何才能加载自动生成的类?
- 5.1.4的pagehelper的com.github.pagehelper.dialect.helper.OracleDialect类下的public String getPageSql(String sql, Page page, CacheKey pageKey)方法是不是有BUG?
- 数据库字段有默认值,但是使用自动生成的dao代码, insert语句不会插入默认值 HOT 1
- tk.mybatis.spring.mapper.ClassPathMapperScanner
- 分页 HOT 1
- Date类型转换成了Timestamp
- 能用在elasticsearch搜索分页码?
- pagehelper 页数传递超过总页数为啥不会返回空 HOT 1
- AggregationMapper使用报错
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mybatis-spring-boot.