Ruoyi-Cloud 啟動失敗的坑,關于 selectConfigList
剛才編輯了一堆,不知道為啥加了個英文單詞,當前頁面刷新自動搜索了單詞,之前的內容總的就是現在都要會SpringCloud,高并發,幾個真正懂高并發的,問題一般項目也沒有啥高并發。自己之前的項目遇到過高并發,單體服務 Tomcat 最大連接數在那擺著設置再高沒有用,打開后臺一看OOM 一直跳,重啟服務也還是上來就OOM,后來是讓用戶按城市開放注冊和使用的。
ok 說一下Ruoyi-Cloud 的selectConfigList
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.apache.ibatis.binding.BindingException:
Invalid bound statement (not found): com.ruoyi.system.mapper.SysConfigMapper.selectConfigList
這里需要注意一點 此時你應該啟動了本地Nacos nacos 安裝的話,我給個下載鏈接吧
鏈接: https://pan.baidu.com/s/1VQ6_0Wv2Z4UIXqCoqWRDpw 提取碼: pdsi
其實這個問題挺好解決的 不賣關子了,實操開始。
1.首先 關閉本地Nacos

2. 打開Nacos所在目錄
D:\nacos\conf

添加如下代碼
# db mysql spring.datasource.platform=mysql db.num=1 db.url.0=jdbc:mysql://localhost:3306/ry-config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC db.user=root db.password=wsnd123
保存好之后 啟動 Nacos 再啟動RuoYiSystemApplication 你就會發現 wow 好使了 不報錯了
奧里給,如果能幫助到你,可以開通博客園的會員支持一下。
新鮮刺激的東西永遠都有,玩之前掂量掂量自己幾斤幾兩
浙公網安備 33010602011771號