代码拉取完成,页面将自动刷新
数据源配置与构建参考:
solon.dataSources.db1!:
schema: rock
jdbcUrl: jdbc:mysql://localhost:3306/rock?useUnicode=true&characterEncoding=utf8&autoReconnect=true&rewriteBatchedStatements=true
driverClassName: com.mysql.jdbc.Driver
username: root
password: 123456
# 配置印射的是 SQLManagerBuilder 字段
beetlsql.db1:
dialect: "mysql" #快捷配置:方言
debug: true #快捷配置:是否调试模式
slaves: "db2,db3" #快捷配置:从库配置
nc: "org.wisecloud.common.db.beetlsql.JPANameConversion" #字段映射
dbStyle: "org.beetl.sql.core.db.MySqlStyle" #字段映射:与 dialect 效果相同
inters: #字段映射
- "org.beetl.sql.ext.DebugInterceptor" #与 debug 效果相同
- "org.beetl.sql.ext.Slf4JLogInterceptor"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。