From 8a0e88df26793319adb9a1db26abc12961afa462 Mon Sep 17 00:00:00 2001 From: Eterlaze <1215710470@qq.com> Date: Sun, 22 Dec 2024 10:00:07 +0800 Subject: [PATCH] =?UTF-8?q?Springboot=E6=95=B0=E6=8D=AE=E5=BA=93=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IDEA/src/main/resources/application.yaml | 32 ++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 IDEA/src/main/resources/application.yaml diff --git a/IDEA/src/main/resources/application.yaml b/IDEA/src/main/resources/application.yaml new file mode 100644 index 00000000..06a726c1 --- /dev/null +++ b/IDEA/src/main/resources/application.yaml @@ -0,0 +1,32 @@ +server: + port: 8088 + +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://localhost:3306/logistics?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true + username: root + password: 123456 + jpa: + hibernate: + ddl-auto: update + open-in-view: false + show-sql: true + mail: + host: smtp.qq.com + protocol: smtp + default-encoding: UTF-8 + port: 465 + username: abc@qq.com + password: hmps234234 + properties: + mail: + debug: true + smtp: + ssl: + enable: true + +# 设置日志级别会给root根节点设置,代表整体应用的级别 +logging: + level: + root: info \ No newline at end of file