![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Mybatis
坎布里奇
从业互联网多年的小白
展开
-
多数据源导致的找不到事务管理器的问题 @Primary
@Primary 的作用原创 2022-11-15 22:27:13 · 556 阅读 · 0 评论 -
mybatis-generator-maven-plugin自动生成实体和Mapper.xml
第一步:引入依赖: <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-core</artifactId> <version>1.4.0</version> </dependency> 第二步: 在build中添加plugin:原创 2020-12-10 21:00:59 · 390 阅读 · 0 评论 -
java.sql.SQLException: Parameter index out of range (5 > number of parameters, which is 4).
错误: 1: java.sql.SQLException: Parameter index out of range (5 > number of parameters, which is 4). org.apache.ibatis.type.TypeException: Error setting non null for parameter #5 with JdbcType null . 错误代码如下: 错误原因: '[#{priced},#{priced}+50]' 中使用了#,使用原创 2020-10-15 21:00:35 · 2337 阅读 · 0 评论