若依最详细的配置(零基础,小白版)
若依最詳細(xì)配置
看了零基礎(chǔ)都會(huì)配置
上次的有點(diǎn)敷衍,這次仔細(xì)的寫了一下,希望我說清楚了
1.首先用git將若依克隆下來
Git下載網(wǎng)址
2.建議將前后端分離出來(開始時(shí)都在RuoYi-Vue-Plus中)
3。進(jìn)入這里把里面兩個(gè)sql文件執(zhí)行(如果只是為了運(yùn)行前后端這步可以不用)
就先配置后端
1.更改這三個(gè)代碼的配置
application中
application-dev中
該自己數(shù)據(jù)庫(kù)的名字(那個(gè)3306后是剛剛運(yùn)行了那兩個(gè)sql文件的數(shù)據(jù)庫(kù)名字)application-prop中還有一個(gè)
port是默認(rèn)的redis(內(nèi)存數(shù)據(jù)庫(kù))端口,要與你的redis一樣application-prop中也還有一個(gè)
后端好了嗎?還沒有還需要運(yùn)行redis
偷的redis下載地址
用dos命令將目錄移動(dòng)到redis根目錄下執(zhí)行如下的命令就會(huì)顯示圖中圖案則臨時(shí)服務(wù)成功啟動(dòng)
最后啟動(dòng)后端就可以了(注意那個(gè)臨時(shí)服務(wù)不要關(guān),否則會(huì)報(bào)錯(cuò))
前端
后面那個(gè)那個(gè)要和后端的那個(gè)context-path一致(我的是citywater這兒就是citywater)
改了之后再去下載一個(gè)nodejs哈哈
nodejs下載網(wǎng)址
安裝之后還是不行哈哈(總之我的不行,不知道你們可以不)
需要:用dos窗口:用dos命令進(jìn)入若依前段項(xiàng)目ruoyi-ui中輸入npm install --registry=http://registry.npm.taobao.org;
再添加npm(不然配不起)
名字隨意,但是scripts要改成dev,注意那個(gè)Node interpreter的文件可能要自己從本地添加
報(bào)錯(cuò)總結(jié)
1.Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘sysConfigController’: Unsatisfied dependency expressed through field ‘configService’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sysConfigServiceImpl’: Invocation of init method failed; nested exception is org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is org.springframework.data.redis.connection.PoolException: Could not get a resource from the pool; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to localhost:6379
這個(gè)是redis服務(wù)沒打開,打開就行了
或批處理文件。
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ruoyi@3.3.0 dev: vue-cli-service serve
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ruoyi@3.3.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
這個(gè)是我下了nodejs后就啟動(dòng)項(xiàng)目報(bào)的錯(cuò)
在網(wǎng)上有很多方案
一種:重新安裝node_modules
我的是用dos窗口:用dos命令進(jìn)入若依前段項(xiàng)目ruoyi-ui中輸入npm install --registry=thhp://registry.npm.taobao.org;
就沒報(bào)錯(cuò)了
小白書寫的博客,請(qǐng)各位大佬糾正錯(cuò)誤,提提建議謝謝了
總結(jié)
以上是生活随笔為你收集整理的若依最详细的配置(零基础,小白版)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Java 的单例模式
- 下一篇: Java 的异常