在本機操作,執行以下步驟啟動專案
1、從Github上下載原始碼
git clone https://github.com/ChinaSilence/any-video.git
2、在資料庫中建庫,建表
在資料下執行 database.sql 檔案
3、修改組態檔 src/main/resources/application.yml
# Tomcat 配置
server:
port: 80
# 資料庫 及 Redis 配置
spring:
redis:
host: [Redis服務器地址]
port: [Redis埠號]
password: [Redis客戶端密碼]
datasource:
url: [資料庫連接地址]
driver-class-name: org.mariadb.jdbc.Driver
username: [資料庫賬號]
password: [資料庫密碼]
sql-script-encoding: utf-8
mail:
host: [郵件提供方地址]
username: [郵箱賬號]
password: [郵箱密碼]
properties:
mail:
smtp:
auth: false
starttls:
enable: false
required: false
# Mybatis 配置
mybatis:
config-location: classpath:/mybatis.xml
# Redis Key 前綴
redis:
prefix:
signUp: SIGN
# 本站資訊
app:
name: [網站名稱]
domain: [網站域名]
說明:郵箱資訊用于用戶注冊時,使用此郵箱給用戶發送激活郵件
4、 進入 pom.xml 目錄,執行以下命令啟動專案
mvn spring-boot:run
說明:第一次啟動需要下載各種依賴的jar包,需要一些時間
5、查看啟動結果

控制臺列印如上類似資訊表明啟動成功,在瀏覽器訪問 http://localhost 即可查看專案
6、查看專案效果

Github地址
地址: https://github.com/ChinaSilence/any-video
演示地址:
地址:http://www.ictgu.cn
本文由博客一文多發平臺 OpenWrite 發布!
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/190796.html
標籤:Java
