Browse Source

本地数据库配置

fanzherong_v 3 days ago
parent
commit
753c9a98b5
1 changed files with 8 additions and 2 deletions
  1. 8 2
      snowy-web-app/src/main/resources/application-local.properties

+ 8 - 2
snowy-web-app/src/main/resources/application-local.properties

@@ -19,10 +19,16 @@ spring.servlet.multipart.max-file-size=100MB
 #########################################
 
 # mysql
+#spring.datasource.dynamic.datasource.master.driver-class-name=com.mysql.cj.jdbc.Driver
+#spring.datasource.dynamic.datasource.master.url=jdbc:mysql://121.40.149.118:13306/snowy_hnzy?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&useInformationSchema=true&rewriteBatchedStatements=true
+#spring.datasource.dynamic.datasource.master.username=root
+#spring.datasource.dynamic.datasource.master.password=4008809192
+#spring.datasource.dynamic.strict=true
+
 spring.datasource.dynamic.datasource.master.driver-class-name=com.mysql.cj.jdbc.Driver
-spring.datasource.dynamic.datasource.master.url=jdbc:mysql://121.40.149.118:13306/snowy_hnzy?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&useInformationSchema=true&rewriteBatchedStatements=true
+spring.datasource.dynamic.datasource.master.url=jdbc:mysql://218.2.6.10:13006/snowy_hnzy?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&useInformationSchema=true&rewriteBatchedStatements=true
 spring.datasource.dynamic.datasource.master.username=root
-spring.datasource.dynamic.datasource.master.password=4008809192
+spring.datasource.dynamic.datasource.master.password=whzl9192
 spring.datasource.dynamic.strict=true