若依最详细配置
看零度基点就能配置
上次有点合适,这次写得很详细,希望你能说清楚
1 .首先用git克隆若依
Git下载网站
2 .建议分离前后端(从RuoYi-Vue-Plus开始) )。
3。 进入这里运行里面的两个sql文件。 如果只是为了执行前后端的话,不用这个步骤也可以。
先配置后端
1 .更改这三个代码的配置
正在APP
APP-dev中
此数据库的名称(3306之后是刚运行这两个sql文件的数据库的名称) application-prop中还有一个
port是默认的redis (内存数据库)端口,和你的redis一样,application-prop中还有一个
后端可以吗? 还不需要运行redis
偷的redis的下载地址
使用dos命令将目录移动到redis根目录下,执行以下命令时,会显示插图,临时服务成功启动
最后启动后端就可以了。 (请注意不要关闭该临时服务。 否则会报告错误。 ) )
前端
后面的那个必须和后端的context-path一致()我的是citywater,这里是citywater ) )。
更改后再去下载nodejs
nodejs下载网站
安装也不行啊哈哈(总之我的不行,不知道你们能不能做) )。
需要:使用dos窗口:使用dos命令,在前一个ruoyi-ui中输入NPM install-- registry=http://registry.NPM.Taobao.org;
添加npm (否则无法配合)。
名称是自由的,但scripts会将其更改为dev。 请注意,该节点解释器文件可能会自己从本地添加
错误报告总结
1 .应用程序运行失败
org.spring framework.beans.factory.unsatisfieddependencyexception : errorcreatingbeanwithname‘sys config controller’ k.beans.factory.beancreationexception : errorcreatingbeanwithname‘sys config serving nestedexceptionisorg.spring frameg nestedexceptionisorg.spring framework.data.redis.connection.pool exception : couldnotgetaresourcefromthepoool; nestedexceptionisio.lettuce.core.redisconnectionexception 3360 unabletoconnecttolocalhost 33606379
这是redis服务没有打开,打开就行了
“vue-cli-service”不是内部或外部命令,也不是可执行程序或批处理文件。
npm ERR! 代码生命周期
npm ERR! errno 1
npm ERR! ruoyi @3.3.0dev : vue-CLI-service serve
npm ERR! Exit status 1
npm ERR!
npm ERR! failedattheruoyi @3.3.0dev脚本。
npm ERR! thisisprobablynotaproblemwithnpm.thereislikelyadditionalloggingoutputabove。
npm WARN Local package.json exists,but node_modules missing,did you mean to install?
这是因为我下了nodejs之后才写了项目报告
网络上有很多方案
一:重新安装node_modules
我的是dos窗口。 使用dos命令在上一个项目ruoyi-ui中输入NPM install-- registry=thhp ://registry.NPM.Taobao.org;
没错
悲凉的荔枝书写的博客,请各位大佬纠正错误,提提建议谢谢了