1.github下载nacos源码:https://github.com/alibaba/nacos
2.在父pom.xml
的dependencies
节点里添加达梦数据驱动
com.dameng
Dm8JdbcDriver18
8.1.1.49
3.找到ExternalDataSourceProperties.java
文件修改JDBC_DRIVER_NAME 常量
private static final String JDBC_DRIVER_NAME = "dm.jdbc.driver.DmDriver";
4.nacos-dm.sql
数据脚本放到distribution/conf
目录中一定要加入许可信息不然打包会出错
/*
* Copyright 1999-2018 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*