###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