AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
## 多个业务库 如果系统有拆分成多个业务系统,则需要为系统配置多个SQLManager,每个SQLManager关联一个业务系统的数据库,或者主从库 如下是Spring Boot 配置orderSqlManager和productSqlManager的片段 ```properties #系统有俩个sqlManager beetlsql = orderSqlManager,productSqlManager #订单是一主俩从 beetlsql.orderSqlManager.ds=orderDs1,orderDs2-slave,orderDs3-slave #商品 beetlsql.productSqlManager.ds=productDs ``` 这样,你可以在业务系统注入SQLManager ```java @Quilifier("orderSqlManager") @Autowired SQLManager orderSQLManager; @Quilifier("productSqlManager") @Autowired SQLManager productSQLManager; ```