bladeX 使用心得及错误记录

这篇博客记录了在使用bladeX进行微服务开发时遇到的问题及其解决方案,包括Spring Boot/Spring Cloud相关的No mapping for GET /异常,Swagger配置错误,JPA的SQL语法修正,Redis的JSON序列化错误,Nacos服务注册问题,CentOS磁盘空间不足的清理方法,JPA HQL错误,CORS错误处理,iptables错误,以及IDEA中Maven导入Netty的错误等。通过这些问题的解决过程,有助于理解并解决类似问题。
摘要由CSDN通过智能技术生成

###bladeX的微服务中,添加后,总是报 No mapping for GET / 异常,No handler found for GET /错误 原因如下:

2021-10-22 08:08:47.230  WARN 5396 --- [ XNIO-1 task-14] o.s.web.servlet.PageNotFound             : No mapping for GET /

2021-10-22 08:08:47.232 ERROR 5396 --- [ XNIO-1 task-14] o.s.c.log.error.RestExceptionTranslator  : 404没找到请求:No handler found for GET /

swagger 配置有问题,修改后正常的,

原配置:

- name: trash

  uri: localhost:17044

  location: /v2/api-docs

改成以下正常了:

- name: 智慧垃圾箱

  uri: 127.0.0.1   ###测试,请指向本机

  location: /blade-trash/v2/api-docs

### bladeX 商业项目 中使用JPA 中 :报 Space is not allowed after parameter prefix ':'

(SELECT a.user_id,(@rowno:=@rowno+1)

改成下面:

(SELECT a.user_id,(@rowno\\:=@rowno+1)

备注:JSPL中 “:”是保留符号,必须使用转义  \\:

### JPA 错误 Specified class is an interface

JPSL 格式错误,请仔细检查;

###docker镜像无法删除 Error:No such image:xxxxxx

删除所有镜像

docker rmi $(docker images -aq)

删除失败,报错

Error: No such image: 7e4d58f0e5f3

查看路径

cd /var/lib/docker/image/overlay2/imagedb/content/sha256/

删除对应的数据

 7e4d58f0e5f3b60077e9a5d96b4be1b974b5a484f54f9393000a99f3b6816e3d

### bladeX cloud SerializationException: Could not read JSON  看错误信息,像是JSON转换 错误,但其实是redis

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:

### Error querying database.  Cause: org.springframework.data.redis.serializer.SerializationException: Could not read JSON: Illegal character ((CTRL-CHAR, code 11)): only regular white space (\r, \n, \t) is allowed between tokens

at [Source: (byte[])"3org.spri

  • 2
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值