代码拉取完成,页面将自动刷新
同步操作将从 oyhk/mkfree-deploy 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
git clone https://gitee.com/381895649/mkfree-deploy.git
cd mkfree-deploy-backend
打开配置文件 application-prod.properties 修改数据库连接配置
# EMBEDDED SERVER CONFIGURATION (ServerProperties)
server.port=8091
server.tomcat.uri-encoding=UTF-8
# http setting
spring.http.encoding.charset=UTF-8
spring.http.encoding.enabled=true
spring.http.encoding.force=true
#db
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/mkfree_deploy_prod?useUnicode=true&characterEncoding=UTF-8&useSSL=false
spring.datasource.username=root
spring.datasource.password=
#jpa
spring.jpa.hibernate.ddl-auto=update
#thymeleaf
spring.thymeleaf.cache=false
spring.thymeleaf.prefix=classpath:/templates/
spring.thymeleaf.encoding=UTF-8
构建项目
mvn clean package
启动命令
java -jar target/mkfree-deploy-backend-1.0.jar --spring.profiles.active=prod
启动后,数据结构会自动生成 在用户表添加一个用户
INSERT INTO user (username, password,password_salt,role_type,user_token)
VALUES ('oyhk', '5b648d79f3aa3cef14ae40cf17a4c66a',1492429251747,'ADMIN','e15fc3c18fecfd8e3937c2b8c8677b4a');
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。