需要拉取git代码修改重新打包
Git仓库: https://gitee.com/KFCFans/PowerJob
- 添加pom的依赖
<!-- 达梦 database -->
<dependency>
<groupId>com.dameng</groupId>
<artifactId>DmJdbcDriver18</artifactId>
<version>8.1.1.193</version>
</dependency>
<!-- 必须,对应hibernate的达梦数据库方言 -->
<dependency>
<groupId>com.dameng</groupId>
<artifactId>DmDialect-for-hibernate5.6</artifactId>
<version>8.1.2.192</version>
</dependency>
- 配置application.properties
spring.datasource.core.driver-class-name=dm.jdbc.driver.DmDriver
spring.datasource.core.jdbc-url=jdbc:dm://xxx?schema=xxx
spring.datasource.core.username=
spring.datasource.core.password=
spring.datasource.core.maximum-pool-size=20
spring.datasource.core.minimum-idle=5
spring.datasource.remote.hibernate.properties.hibernate.dialect=org.hibernate.dialect.DmDialect
- 再重新打包,使用PowerJob大神的 Dockerfile 构建新的镜像,如果是基于docker-compose.yml 有想跨服务器部署的形式
参考另一篇博客: https://blog.csdn.net/LZY_1993/article/details/129860974