通用後臺管理系統(10)項目打包、修改配置文件、項目開源地址

修改數據庫

文件位置

/backend/backend-server-rpc/src/main/resources/config/db.properties

修改db.properties 文件

jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://127.0.0.1:3306/test?characterEncoding=utf-8
jdbc.username=sunda
jdbc.password=1314520abc!
jdbc.filters=stat
jdbc.maxActive=20
jdbc.initialSize=1
jdbc.maxWait=60000
jdbc.minIdle=10
jdbc.timeBetweenEvictionRunsMillis=60000
jdbc.minEvictableIdleTimeMillis=300000
jdbc.validationQuery=SELECT 'x' 
jdbc.testWhileIdle=true
jdbc.testOnBorrow=false
jdbc.testOnReturn=false
jdbc.maxOpenPreparedStatements=20
jdbc.removeAbandoned=true
jdbc.removeAbandonedTimeout=1800
jdbc.logAbandoned=true

修改dubbo

路徑

backend/backend-server-web/src/main/resources/spring/applicationContext-dubbo.xml

修改內容

<!-- 修改自己的ip地址 -->
<dubbo:registry protocol="zookeeper" address="127.0.0.1:2181" />

路徑

backend/backend-server-rpc/src/main/resources/spring/applicationContext-service.xml

修改內容

    <!-- dubbo服務器地址  修改這裏 -->
    <dubbo:registry protocol="zookeeper" address="127.0.0.1:2181" />

修改redis

路徑

backend/backend-server-web/src/main/resources/redis.properties

修改內容

master.redis.ip=
master.redis.port=6379
master.redis.password=
master.redis.max_active=500
master.redis.max_idle=5
master.redis.max_wait=10000
master.redis.timeout=10000

修改圖片

路徑

/backend/backend-server-rpc/src/main/resources/config/resource.properties

修改內容

#圖片上傳模式選擇 1本地分佈式 2.7牛雲 3.阿里雲 
UPLOADING_QINIU_TYPE=2


#7牛雲
qiniu.filesystem.provider=qiniu
qiniu.filesystem.bucketName=test
qiniu.filesystem.urlprefix=http://image.sundablog.com
qiniu.filesystem.accessKey=
qiniu.filesystem.secretKey=
qiniu.filesystem.private=true


# 使用fastdfs
fastDFS.filesystem.provider=fastDFS
fastDFS.filesystem.servers=192.168.2.234:22122
fastDFS.filesystem.urlprefix=http://192.168.2.234:80
fastDFS.filesystem.connectTimeout=3000
fastDFS.filesystem.maxThreads=100

#使用阿里雲
aliyun.filesystem.provider=aliyun
aliyun.filesystem.bucketName=sundablogtest
aliyun.filesystem.endpoint=http://oss-cn-beijing.aliyuncs.com
aliyun.filesystem.accessKey=
aliyun.filesystem.secretKey=
aliyun.filesystem.urlprefix=http://sundablogtest.oss-cn-beijing.aliyuncs.com
aliyun.filesystem.private=true

開源地址

https://gitee.com/sunda1314520/TongYongWangZhanHouTaiXiTong
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章