当前位置:网站首页>Ruoyi-Cloud 踩坑的BUG
Ruoyi-Cloud 踩坑的BUG
2022-07-06 09:30:00 【爱机车的程序猿】
Ruoyi-Cloud报错统计
端口
Web server failed to start. Port 端口 was already in use.( Web服务器无法启动。端口8080已在使用中。)
解决:
打开cmd: netstat -ano | findstr 8080TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 9824
TCP [::]:8080 [::]:0 LISTENING 9824
再次输入:关闭进程:taskkill -pid 9824 -f
工具
Npm error operation not permitter下载访问权限-4048
npm下载一直报错就最快重新安装nodejs就欧克
解决:
卸载nodejs、npm重新安装nodejs(重点)安装路径默认就好不用管
项目
后端启动需要开启nacos 配置redis ,mysql
前端登录时报:
Uncaught (in promise) Error: [vue-router] "path" is required in a route conf
解决:
数据库ry-cloud ==》sys_menu ==》添加了一个菜单但是path没有添加就无法指向路由,而且不能为空
测试
访问配置好的接口报500以及令牌不能为空
解决:
在请求头加上:Authorization:uuid验证码(需要登陆后在网页上右击检查—>Network—>找到请求头Authorization)测试配置好的接口报
{
“timestamp”: “2021-02-08T16:40:20.008+0800”,
“status”: 404,
“error”: “Not Found”,
“message”: “No message available”,
“path”: “/line/list”
}
解决:
实体类加无参构造方法---->重新加载一下maven重启模块出现:
java: 找不到符号 符号: 类 ITLineService 位置: 程序包 com.ruoyi.system.service
解决:
重新加载一下maven获取前端Integer值报
ERROR c.r.c.s.h.GlobalExceptionHandler - [handleException,51] - nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named ‘errorType’ in ‘class java.lang.Integer’
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named ‘errorType’ in ‘class java.lang.Integer’
解决:
去掉@RequestBody只接收Integer类型的参数
@RequestBody是获取前端json数据的测试外部接口
5.1需要在Collroller去掉@PreAuthorize()
5.2 外部测试工具(postman,swaggerUI)测试接口
注意:royui接口都加了/core要是加在Collroller接口前面的通过Ruoyi用户添加一条Andon数据时报
热部署和非热部署情况下都会出现这个问题
ERROR c.r.c.s.h.GlobalExceptionHandler - [handleException,51] - com.ruoyi.system.api.model.LoginUser cannot be cast to com.ruoyi.system.api.model.LoginUser
java.lang.ClassCastException: com.ruoyi.system.api.model.LoginUser cannot be cast to com.ruoyi.system.api.model.LoginUser
解决: 重启所有服务才解决
- VUE 报 WARNING 内容为未提交for :key唯一标识 标识重复
WARNING Compiled with 1
Warningin ./src/views/activiti/modules/AndonAgency.vue?vue&type=template&id=3023577d&
Module Warning (from ./node_modules/vue-loader/lib/loaders/templateLoader.js):
(Emitted value instead of an instance of Error) <el-radio v-for="item in analysisByTypes">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
@ ./src/views/activiti/modules/AndonAgency.vue?vue&type=template&id=3023577d& 1:0-440 1:0-440
@ ./src/views/activiti/modules/AndonAgency.vue
@ ./src/views sync ^\.\/.*$
@ ./src/store/modules/permission.js
@ ./src/store/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://192.168.66.180:80&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
解决:
找到报错 在标签中加上:key=”item” 就ok了
ruoyi官网常见问题
边栏推荐
- 我走过最迷的路,是字节跳动程序员的脑回路
- 字节跳动多篇论文入选 CVPR 2021,精选干货都在这里了
- LeetCode 1552. Magnetic force between two balls
- Two weeks' experience of intermediate software designer in the crash soft exam
- When it comes to Google i/o, this is how ByteDance is applied to flutter
- string. How to choose h and string and CString
- Introduction to microservices
- ~82 style of table
- 7-6 sum of combinatorial numbers
- QT system learning series: 1.2 style sheet sub control lookup
猜你喜欢

One hundred questions of image processing (11-20)

LeetCode 1557. The minimum number of points that can reach all points

汇编语言寻址方式

Eureka single machine construction

100张图训练1小时,照片风格随意变,文末有Demo试玩|SIGGRAPH 2021

Fdog series (VI): use QT to communicate between the client and the client through the server (less information, recommended Collection)

Detailed explanation of FLV format

~69 other ways to use icon fonts

"One year after graduation, I won ACL best paper"

我走过最迷的路,是字节跳动程序员的脑回路
随机推荐
字节跳动新程序员成长秘诀:那些闪闪发光的宝藏mentor们
Use JQ to realize the reverse selection of all and no selection at all - Feng Hao's blog
面试集锦库
Thank you for your invitation. I'm in the work area. I just handed in the code. I'm an intern in the next ByteDance
这116名学生,用3天时间复刻了字节跳动内部真实技术项目
SQL quick start
How to configure hosts when setting up Eureka
Mongodb在node中的使用
LeetCode 1984. Minimum difference in student scores
LeetCode 1551. Minimum operand to make all elements in the array equal
Shell_ 07_ Functions and regular expressions
这群程序员中的「广告狂人」,把抖音广告做成了AR游戏
J'ai traversé le chemin le plus fou, le circuit cérébral d'un programmeur de saut d'octets
After the subscript is used to assign a value to the string type, the cout output variable is empty.
was unable to send heartbeat
One hundred questions of image processing (11-20)
@RequestMapping、@GetMapping
~76 sprite map
字节跳动春招攻略:学长学姐笔经面经,还有出题人「锦囊」
汇编课后作业