本文最后更新于 48 天前,其中的信息可能已经有所发展或是发生改变。
Star
并且 Fork
本项目到你的 repo
(bushi)jdk17
、node.js16+
、SpringBoot3
、Vue3
、redis5.0.14.1
idea
进行构建: demo-beckend
模块导入,并执行 Maven
构建。demo-frontend
模块导入,并执行 npm
构建。redis
,windows
下载地址;mysql
,运行 demo.sql
文件,注意字符集为 utf8mb4
,排序规则为 utf8mb4_unicode_ci
。进入 demo-backend/src/main/resources
打开 application.yaml
文件修改数据源配置:
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/demo?useUnicode=true&charterEncoding=utf-8 # 数据库连接地址,数据库名称默认 demo
username: xxx # 数据库连接用户名
password: xxxxxx # 密码
mail: # 配置 smtp 邮件代发
host: smtp.163.com # 邮件代理主机地址
username: xxx@xxx.com # 代理用户名
password: xxxxxx # 密码
protocol: smtps
port: 465
properties:
from: xxx@xxx.com # 代理用户名
mail:
smtp:
auth: true
starttls:
enable: true
socketFactory:
class: javax.net.ssl.SSLSocketFactory
data:
redis:
database: 0
host: 127.0.0.1
port: 6379
mysql
数据库成功连接;redis
服务端;mysql
数据库端口正确并放行。smtp
服务。vpn
等网络代理服务。mail
的 protocal
类型,port: 465
对应 protocal:smtps
。扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有