# nacos_config_demo **Repository Path**: javaalpha/nacos_config_demo ## Basic Information - **Project Name**: nacos_config_demo - **Description**: 基于Nacos分布式配置中心进行多环境配置 - **Primary Language**: Java - **License**: EPL-1.0 - **Default Branch**: master - **Homepage**: https://gitee.com/javaalpha/nacos_config_demo - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-07-09 - **Last Updated**: 2022-05-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 基于Nacos分布式配置中心进行多环境配置 ### 项目说明参考 https://www.cnblogs.com/LUA123/p/10656079.html ### 按照sql文件夹下面的目录名,创建对应的数据库,代表三个不同的环境,导入对应的SQL文件 ### dev数据库连接: url=jdbc:mysql://localhost:3306/mytest_dev?useSSL=false&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&rewriteBatchedStatements=true user_name=root password=A123456 driver_class_name=com.mysql.jdbc.Driver ### test数据库连接: url=jdbc:mysql://localhost:3306/mytest_test?useSSL=false&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&rewriteBatchedStatements=true user_name=root password=A123456 driver_class_name=com.mysql.jdbc.Driver ### pro数据库连接: url=jdbc:mysql://localhost:3306/mytest_pro?useSSL=false&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&rewriteBatchedStatements=true user_name=root password=A123456 driver_class_name=com.mysql.jdbc.Driver ### Nacos配置参考 https://www.jianshu.com/p/d38e6d5ebfcb