12 Star 144 Fork 72

OpenSolon/solon-examples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

配置示例

数据源配置与构建参考:

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"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/opensolon/solon-examples.git
git@gitee.com:opensolon/solon-examples.git
opensolon
solon-examples
solon-examples
main

搜索帮助