From 3528ebb0c4806e02acfaf2ca78400d11bdd2393c Mon Sep 17 00:00:00 2001 From: wangw <1594593906@qq.com> Date: Wed, 4 Sep 2024 11:29:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=8E=AF=E5=A2=83=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E8=BF=9E=E6=8E=A5=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=20=E6=96=B0=E5=A2=9E=20pre=20=E9=A2=84=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-dev.yml | 6 +++--- ...plication-test.yml => application-pre.yml} | 20 +++++++++++-------- 2 files changed, 15 insertions(+), 11 deletions(-) rename src/main/resources/{application-test.yml => application-pre.yml} (70%) diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index b49645c..8ceb21e 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -4,9 +4,9 @@ spring: application: name: cashierService datasource: - url: jdbc:mysql://101.37.12.135:3306/fycashier?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useJDBCCompliantTimezoneShift=true&serverTimezone=Asia/Shanghai&useSSL=false&allowMultiQueries=true - username: fycashier - password: Twc6MrzzjBiWSsjh + url: jdbc:mysql://rm-bp1kn7h89nz62cno1ro.mysql.rds.aliyuncs.com:3306/fycashier_test?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useJDBCCompliantTimezoneShift=true&serverTimezone=Asia/Shanghai&useSSL=false&allowMultiQueries=true + username: cashier + password: Cashier@1@ driver-class-name: com.mysql.cj.jdbc.Driver initialSize: 5 minIdle: 5 diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-pre.yml similarity index 70% rename from src/main/resources/application-test.yml rename to src/main/resources/application-pre.yml index d05012b..0fac72e 100644 --- a/src/main/resources/application-test.yml +++ b/src/main/resources/application-pre.yml @@ -1,10 +1,12 @@ +server: + port: 10589 spring: application: name: cashierService datasource: - url: jdbc:mysql://121.40.128.145:3306/fycashier?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useJDBCCompliantTimezoneShift=true&serverTimezone=Asia/Shanghai&useSSL=false - username: root - password: mysqlroot@123 + url: jdbc:mysql://rm-bp1kn7h89nz62cno1ro.mysql.rds.aliyuncs.com:3306/fycashier_pre?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useJDBCCompliantTimezoneShift=true&serverTimezone=Asia/Shanghai&useSSL=false&allowMultiQueries=true + username: cashier + password: Cashier@1@ driver-class-name: com.mysql.cj.jdbc.Driver initialSize: 5 minIdle: 5 @@ -12,12 +14,12 @@ spring: maxWait: 60000 logging: level: - com.chaozhanggui.system.openness: debug + com.chaozhanggui.system.openness: info redis: # redis数据库索引(默认为0),我们使用索引为3的数据库,避免和其他数据库冲突 - database: 2 + database: 0 # redis服务器地址(默认为localhost) - host: 101.37.12.135 + host: localhost # redis端口(默认为6379) port: 6379 # redis访问密码(默认为空) @@ -35,7 +37,7 @@ spring: main: allow-circular-references: true rabbitmq: - host: 127.0.0.1 + host: localhost port: 5672 username: admin password: Czg666888 @@ -45,12 +47,14 @@ pagehelper: reasonable: true helperDialect: mysql params: count=countSql - mybatis: configuration: map-underscore-to-camel-case: true log-impl: org.apache.ibatis.logging.stdout.StdOutImpl mapper-locations: classpath:mapper/*.xml +subscribe: + message: + miniprogramState: trial