-
Mybatis-flex: 1.6.9
spring boot:2.7.10
數據池: druid
參考[多數據源](https://mybatis-flex.com/zh/core/multi-datasource.html)
調試過程發現兩個問題
1. 有沒有使用UseDataSource("ds2") or DataSourceKey.use("ds2"), 所指向的datas…
-
- [x] DB 테이블 생성
- [x] view 컨트롤러 생성
- [x] 회원가입 기능 구현
- [x] 비밀번호 암호화
- [x] 회원가입 페이지 구현
-
用户在界面可以自己写sql,写完后他会选择一个数据源执行这个sql
-
@Select("select * from t_abc")驼峰字段不能自动识别, 非驼峰字段id 这种一致的可以识别, 只有select * 手写sql的时候会有这个问题, 没有配置column注解
-
# 通过配置项来控制 使用哪个默认数据源
mybatis-flex.default.ds.key=default
mybatis-flex.datasource.ds1.password=root@123
mybatis-flex.datasource.ds1.url=jdbc:mysql://127.0.0.1:3306/ds1?useUnicode=true&characterEnc…
-
- Myabtis Flex版本:1.9.6
- mybatis-spring-boot-starter版本:2.3.2
- 对应Mybatis版本:3.5.14
- 报错:
```
Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: org.apache.ibatis.execu…
-
- **背景**
对Character.loadCharFromDB使用Mybatis-Flex进行重构
- **需求**
代码已重构,需要进行代码审查:Character.loadCharFromDB
1.是否使原有逻辑发生了变化
2.是否有错误
3.是否有遗漏
-
- [ ] 问题1
商城经验卡存在多张叠加问题
同理,爆率卡也可多张叠加
**截图/视频**
![1](https://github.com/user-attachments/assets/dd3749e1-612d-41ab-a796-c5f197f84c36)
![2](https://github.com/user-attachments/assets/1bc6c327-8a5…
-
https://github.com/mybatis-flex/mybatis-flex/blob/852b1b222dd9641888d1a0d98c4a1aeb17b4aa78/mybatis-flex-spring-boot-starter/src/main/java/com/mybatisflex/spring/boot/ConditionalOnMybatisFlexDatasource…
-
希望仅生成ServiceImpl时,不实现接口。
很多公司service层不需要接口,只有用rpc时接口才有用吧。我们用feign,用不到接口,写了反而增加工作量。