你爱人 2023-05-05 16:14 采纳率: 0%
浏览 239
已结题

ShardingSphere-JDBC适配达梦数据库

如何适配达梦数据库分库分表 springboot2.4.2
Hibernate和jpa

  • 写回答

7条回答 默认 最新

  • qq_37749055 2023-05-05 16:22
    关注
    spring.shardingsphere.datasource.m1.type=com.alibaba.druid.pool.DruidDataSource
    spring.shardingsphere.datasource.m1.driver-class-name=com.mysql.cj.jdbc.Driver
    spring.shardingsphere.datasource.m1.url=jdbc:mysql://192.168.1.1:3306/edu_db_1?characterEncoding=utf-8&serverTimezone=GMT%2B8
    spring.shardingsphere.datasource.m1.username=root
    spring.shardingsphere.datasource.m1.password=123456
    
    
    

    配置下数据库驱动 即可

    评论

报告相同问题?

问题事件

  • 系统已结题 5月13日
  • 创建了问题 5月5日