From fbf3fac0c4cbf929fb8a0a7d08e600f820e7736a Mon Sep 17 00:00:00 2001 From: Jiang Jiwen <125579488+JiwenJ@users.noreply.github.com> Date: Fri, 14 Jul 2023 17:51:32 +0800 Subject: [PATCH] Add files via upload --- .../src/main/resources/application.properties | 1 + .../demo2/src/main/resources/application.yml | 79 +++++++++++++++++++ .../demo2/src/main/resources/mail4buyer.ftl | 61 ++++++++++++++ .../demo2/src/main/resources/mail4seller.ftl | 61 ++++++++++++++ .../templates/freemarker/mail4buyer.ftl | 61 ++++++++++++++ 5 files changed, 263 insertions(+) create mode 100644 Code/Backend/demo2/src/main/resources/application.properties create mode 100644 Code/Backend/demo2/src/main/resources/application.yml create mode 100644 Code/Backend/demo2/src/main/resources/mail4buyer.ftl create mode 100644 Code/Backend/demo2/src/main/resources/mail4seller.ftl create mode 100644 Code/Backend/demo2/src/main/resources/templates/freemarker/mail4buyer.ftl diff --git a/Code/Backend/demo2/src/main/resources/application.properties b/Code/Backend/demo2/src/main/resources/application.properties new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Code/Backend/demo2/src/main/resources/application.properties @@ -0,0 +1 @@ + diff --git a/Code/Backend/demo2/src/main/resources/application.yml b/Code/Backend/demo2/src/main/resources/application.yml new file mode 100644 index 0000000..6898ce0 --- /dev/null +++ b/Code/Backend/demo2/src/main/resources/application.yml @@ -0,0 +1,79 @@ +#------------------------------------- +server: + # 端口 +# port: 8083 + port: 8081 + address: 0.0.0.0 +#------------------------------------- + + +#------------------------------------- +spring: + profiles: + active: dev + # freemarker默认存放路径 + freemarker: + template-loader-path: classpath:/templates/freemarker/ + + servlet: + multipart: + max-file-size: 50MB + max-request-size: 50MB + devtools: + restart: + enabled: true + additional-paths: src/main/java + exclude: static/** + mail: + host: smtp.qq.com # 设置邮箱主机 + port: 587 # SMTP 服务器的端口 + username: 1546631808@qq.com # 设置用户名 + password: malttohlkjhcgfih # 设置密码,该处的密码是QQ邮箱开启SMTP的授权码而非QQ密码 + mvc: + static-path-pattern: /static/images/**,/static/templates/** + #数据库连接配置 + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://localhost:3306/tt?useSSL=false&characterEncoding=UTF-8&serverTimezone=UTC + username: root + password: 119917788 + web: + resources: + static-locations: classpath:/static,file:${prop.upload-folder},classpath:/templates,${prop.backend},${prop.backendIp} +# static-path-pattern: /images/** +#------------------------------------- +prop: +# upload-folder: F:\ALL\demo2\src\main\resources\static\images\allgoods\ + upload-folder: /home/jjw/Desktop/server/images/allgoods/ + backend: http://124.71.159.90:8081/images/allgoods/ + backendIp: http://124.71.159.90:8081 +mail: + fromMail: + addr: 1546631808@qq.com +#------------------------------------- +mybatis-plus: + configuration: + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl +#------------------------------------- + + +sa-token: + # token名称 (同时也是cookie名称) + token-name: satoken + # token有效期,单位s 默认30天, -1代表永不过期 + timeout: 2592000 + # token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒 + activity-timeout: -1 + # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录) + is-concurrent: true + # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token) + is-share: true + # token风格 + token-style: uuid + # 是否输出操作日志 + is-log: false + + + + + diff --git a/Code/Backend/demo2/src/main/resources/mail4buyer.ftl b/Code/Backend/demo2/src/main/resources/mail4buyer.ftl new file mode 100644 index 0000000..1014f1c --- /dev/null +++ b/Code/Backend/demo2/src/main/resources/mail4buyer.ftl @@ -0,0 +1,61 @@ + + + + + + + + + + +
+ + + + + + + + + +
+ N-Market +
+
+ +

+ + + 尊敬的用户: + +

+ +

您好!感谢您使用N-Market。您承诺购买并预约商品《{0}》,购买金额:¥{3},预约时间段:{1}

+

卖家联系方式为{2},请双方在预约时间前尽快联系,以免影响双方信用,谢谢合作。


+ +

+ + + Dear user: + +

+

Hello! Thanks for using N-Market, this is a e-mail for notification, your appointment has gone into effect, please check the message above and contact each other ASAP before the appointment, thank you for your cooperation.

+
+
+

N-Market团队

+

联系我们:南京市栖霞区仙林大道163号

+
+

此为系统邮件,请勿回复
+ Please do not reply to this system email +

+

©Nanjing University

+
+
+
+
+
+ + + diff --git a/Code/Backend/demo2/src/main/resources/mail4seller.ftl b/Code/Backend/demo2/src/main/resources/mail4seller.ftl new file mode 100644 index 0000000..2c91a16 --- /dev/null +++ b/Code/Backend/demo2/src/main/resources/mail4seller.ftl @@ -0,0 +1,61 @@ + + + + + + + + + + +
+ + + + + + + + + +
+ N-Market +
+
+ +

+ + + 尊敬的用户: + +

+ +

您好!感谢您使用N-Market。您的商品《{0}》已被预约,售价:¥{3},买家承诺购买,预约时间段:{1}

+

买家联系方式为{2},请双方在预约时间前尽快联系,以免影响双方信用,谢谢合作。


+ +

+ + + Dear user: + +

+

Hello! Thanks for using N-Market, this is a e-mail for notification, your goods are under reservation, please check the message above and contact each other ASAP before the appointment, thank you for your cooperation.

+
+
+

N-Market团队

+

联系我们:南京市栖霞区仙林大道163号

+
+

此为系统邮件,请勿回复
+ Please do not reply to this system email +

+

©Nanjing University

+
+
+
+
+
+ + + diff --git a/Code/Backend/demo2/src/main/resources/templates/freemarker/mail4buyer.ftl b/Code/Backend/demo2/src/main/resources/templates/freemarker/mail4buyer.ftl new file mode 100644 index 0000000..82523a0 --- /dev/null +++ b/Code/Backend/demo2/src/main/resources/templates/freemarker/mail4buyer.ftl @@ -0,0 +1,61 @@ + + + + + + + + + + +
+ + + + + + + + + +
+ N-Market +
+
+ +

+ + + 尊敬的用户: + +

+ +

您好!感谢您使用N-Market。您承诺购买并预约商品《{0}》,预约时间段为{1}

+

卖家联系方式为{2},请双方在预约时间前尽快联系,以免影响双方信用,谢谢合作。


+ +

+ + + Dear user: + +

+

Hello! Thanks for using N-Market, this is a e-mail for notification, your appointment has gone into effect, please check the message above and contact each other ASAP before the appointment, thank you for your cooperation.

+
+
+

N-Market团队

+

联系我们:南京市栖霞区仙林大道163号

+
+

此为系统邮件,请勿回复
+ Please do not reply to this system email +

+

©Nanjing University

+
+
+
+
+
+ + +