-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
263 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: [email protected] # 设置用户名 | ||
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: [email protected] | ||
#------------------------------------- | ||
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 | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<!DOCTYPE html> | ||
<html xmlns:th="http://www.thymeleaf.org"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="description" content="email code"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
</head> | ||
<!--邮箱验证码模板--> | ||
<body> | ||
<div style="background-color:#ECECEC; padding: 35px;"> | ||
<table cellpadding="0" align="center" | ||
style="width: 800px;height: 100%; margin: 0px auto; text-align: left; position: relative; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; font-size: 14px; font-family:微软雅黑, 黑体; line-height: 1.5; box-shadow: rgb(153, 153, 153) 0px 0px 5px; border-collapse: collapse; background-position: initial ; background-repeat: initial ;background:#fff;"> | ||
<tbody> | ||
<tr> | ||
<th valign="middle" | ||
style="height: 25px; line-height: 25px; padding: 15px 35px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: RGB(148,0,211); background-color: RGB(148,0,211); border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;"> | ||
<span style="color: rgb(255, 255, 255); font-family: 微软雅黑; font-size: large; ">N-Market</span> | ||
</th> | ||
</tr> | ||
<tr> | ||
<td style="word-break:break-all"> | ||
<div style="padding:25px 35px 40px; background-color:#fff;opacity:0.8;"> | ||
|
||
<h2 style="margin: 5px 0px; "> | ||
<span style="line-height: 20px; color: #333333; "> | ||
<span style="line-height: 22px; font-size: medium; "> | ||
尊敬的用户:</span> | ||
</span> | ||
</h2> | ||
<!-- 中文 --> | ||
<p>您好!感谢您使用N-Market。您承诺购买并预约商品<span style="color: #d70d2b; ">《{0}》</span>,购买金额:<span style="color: #d70d2b; ">¥{3}</span>,预约时间段:<span style="color: #d70d2b; ">{1}</span></p> | ||
<p>卖家联系方式为<span style="color: #d70d2b; ">{2}</span>,请双方在预约时间前尽快联系,以免影响双方信用,谢谢合作。</p><br> | ||
<!-- 英文 --> | ||
<h2 style="margin: 5px 0px; "> | ||
<span style="line-height: 20px; color: #333333; "> | ||
<span style="line-height: 22px; font-size: medium; "> | ||
Dear user:</span> | ||
</span> | ||
</h2> | ||
<p>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.</p> | ||
<div style="width:100%;margin:0 auto;"> | ||
<div style="padding:10px 10px 0;border-top:1px solid #ccc;color:#747474;margin-bottom:20px;line-height:1.3em;font-size:12px;"> | ||
<p>N-Market团队</p> | ||
<p>联系我们:南京市栖霞区仙林大道163号</p> | ||
<br> | ||
<p>此为系统邮件,请勿回复<br> | ||
Please do not reply to this system email | ||
</p> | ||
<p>©Nanjing University</p> | ||
</div> | ||
</div> | ||
</div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<!DOCTYPE html> | ||
<html xmlns:th="http://www.thymeleaf.org"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="description" content="email code"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
</head> | ||
<!--邮箱验证码模板--> | ||
<body> | ||
<div style="background-color:#ECECEC; padding: 35px;"> | ||
<table cellpadding="0" align="center" | ||
style="width: 800px;height: 100%; margin: 0px auto; text-align: left; position: relative; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; font-size: 14px; font-family:微软雅黑, 黑体; line-height: 1.5; box-shadow: rgb(153, 153, 153) 0px 0px 5px; border-collapse: collapse; background-position: initial ; background-repeat: initial ;background:#fff;"> | ||
<tbody> | ||
<tr> | ||
<th valign="middle" | ||
style="height: 25px; line-height: 25px; padding: 15px 35px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: RGB(148,0,211); background-color: RGB(148,0,211); border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;"> | ||
<span style="color: rgb(255, 255, 255); font-family: 微软雅黑; font-size: large; ">N-Market</span> | ||
</th> | ||
</tr> | ||
<tr> | ||
<td style="word-break:break-all"> | ||
<div style="padding:25px 35px 40px; background-color:#fff;opacity:0.8;"> | ||
|
||
<h2 style="margin: 5px 0px; "> | ||
<span style="line-height: 20px; color: #333333; "> | ||
<span style="line-height: 22px; font-size: medium; "> | ||
尊敬的用户:</span> | ||
</span> | ||
</h2> | ||
<!-- 中文 --> | ||
<p>您好!感谢您使用N-Market。您的商品<span style="color: #d70d2b; ">《{0}》</span>已被预约,售价:<span style="color: #d70d2b; ">¥{3}</span>,买家承诺购买,预约时间段:<span style="color: #d70d2b; ">{1}</span></p> | ||
<p>买家联系方式为<span style="color: #d70d2b; ">{2}</span>,请双方在预约时间前尽快联系,以免影响双方信用,谢谢合作。</p><br> | ||
<!-- 英文 --> | ||
<h2 style="margin: 5px 0px; "> | ||
<span style="line-height: 20px; color: #333333; "> | ||
<span style="line-height: 22px; font-size: medium; "> | ||
Dear user:</span> | ||
</span> | ||
</h2> | ||
<p>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.</p> | ||
<div style="width:100%;margin:0 auto;"> | ||
<div style="padding:10px 10px 0;border-top:1px solid #ccc;color:#747474;margin-bottom:20px;line-height:1.3em;font-size:12px;"> | ||
<p>N-Market团队</p> | ||
<p>联系我们:南京市栖霞区仙林大道163号</p> | ||
<br> | ||
<p>此为系统邮件,请勿回复<br> | ||
Please do not reply to this system email | ||
</p> | ||
<p>©Nanjing University</p> | ||
</div> | ||
</div> | ||
</div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</body> | ||
</html> | ||
|
61 changes: 61 additions & 0 deletions
61
Code/Backend/demo2/src/main/resources/templates/freemarker/mail4buyer.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<!DOCTYPE html> | ||
<html xmlns:th="http://www.thymeleaf.org"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="description" content="email code"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
</head> | ||
<!--邮箱验证码模板--> | ||
<body> | ||
<div style="background-color:#ECECEC; padding: 35px;"> | ||
<table cellpadding="0" align="center" | ||
style="width: 800px;height: 100%; margin: 0px auto; text-align: left; position: relative; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; font-size: 14px; font-family:微软雅黑, 黑体; line-height: 1.5; box-shadow: rgb(153, 153, 153) 0px 0px 5px; border-collapse: collapse; background-position: initial ; background-repeat: initial ;background:#fff;"> | ||
<tbody> | ||
<tr> | ||
<th valign="middle" | ||
style="height: 25px; line-height: 25px; padding: 15px 35px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: RGB(148,0,211); background-color: RGB(148,0,211); border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;"> | ||
<span style="color: rgb(255, 255, 255); font-family: 微软雅黑; font-size: large; ">N-Market</span> | ||
</th> | ||
</tr> | ||
<tr> | ||
<td style="word-break:break-all"> | ||
<div style="padding:25px 35px 40px; background-color:#fff;opacity:0.8;"> | ||
|
||
<h2 style="margin: 5px 0px; "> | ||
<span style="line-height: 20px; color: #333333; "> | ||
<span style="line-height: 22px; font-size: medium; "> | ||
尊敬的用户:</span> | ||
</span> | ||
</h2> | ||
<!-- 中文 --> | ||
<p>您好!感谢您使用N-Market。您承诺购买并预约商品<span style="color: #d70d2b; ">《{0}》</span>,预约时间段为<span style="color: #d70d2b; ">{1}</span></p> | ||
<p>卖家联系方式为<span style="color: #d70d2b; ">{2}</span>,请双方在预约时间前尽快联系,以免影响双方信用,谢谢合作。</p><br> | ||
<!-- 英文 --> | ||
<h2 style="margin: 5px 0px; "> | ||
<span style="line-height: 20px; color: #333333; "> | ||
<span style="line-height: 22px; font-size: medium; "> | ||
Dear user:</span> | ||
</span> | ||
</h2> | ||
<p>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.</p> | ||
<div style="width:100%;margin:0 auto;"> | ||
<div style="padding:10px 10px 0;border-top:1px solid #ccc;color:#747474;margin-bottom:20px;line-height:1.3em;font-size:12px;"> | ||
<p>N-Market团队</p> | ||
<p>联系我们:南京市栖霞区仙林大道163号</p> | ||
<br> | ||
<p>此为系统邮件,请勿回复<br> | ||
Please do not reply to this system email | ||
</p> | ||
<p>©Nanjing University</p> | ||
</div> | ||
</div> | ||
</div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</body> | ||
</html> | ||
|