apache / shenyu

Apache ShenYu is a Java native API Gateway for service proxy, protocol conversion and API governance.
https://shenyu.apache.org/
Apache License 2.0
8.44k stars 2.93k forks source link

[Question] <title>The springboot project could not be registered #2257

Closed hkisme closed 3 years ago

hkisme commented 3 years ago

Question

引入自己的springboot项目,http注册,配置参考官网的。报了这个错误 o.a.s.r.client.http.utils.RegisterUtils : http client register error: {"appName":"spring-test","contextPath":"/test","path":"/test/","rpcType":"http","ruleName":"/test/","enabled":true,"host":"192.168.253.1","port":8086,"registerMetaData":false}

Introduce your own springboot project, HTTP registration, configuration, and refer to the official website. Reported this error: o.a.s.r.client.http.utils.RegisterUtils : http client register error: {"appName":"spring-test","contextPath":"/test","path":"/test/","rpcType":"http","ruleName":"/test/","enabled":true,"host":"192.168.253.1","port":8086,"registerMetaData":false}

yu199195 commented 3 years ago

can you run shenyu-admin? can you modify title to english~

hkisme commented 3 years ago

shenyu-admin和shenyu-bootstrap都启动了,并且都配置了,还加了@@ShenyuSpringMvcClient注解,自己项目里面的配置如下: image shenyu-admin配置: image

Both Shenyu admin and Shenyu bootstrap are started and configured, and the @ shenyusprinmvcclient annotation is added. The configuration in your project is as follows:

yu199195 commented 3 years ago

use english, can you debug this error?

isFull = false

hkisme commented 3 years ago

谢谢你的解答,但还是不行,我自己在慢慢研究一下

Thank you for your answer, but I still can't. I'm studying it slowly myself

yu199195 commented 3 years ago

@hkisme

  1. run shenyu-admin
  2. run shenyu-examples-http
hkisme commented 3 years ago

运行shenyu-examples-http这个是能够自动注册的,但是接入我自己的springboot项目就不行了

Running Shenyu - examples - HTTP can register automatically, but accessing my own spring boot project is not enough

hkisme commented 3 years ago

找到了问题,官网上说这样配置 image image 对应的版本是图片圈出来的,然后我在本地的项目导入该版本错误,就降到了2.4.0-SNAPSHOT,但是还是不行,我就去maven仓库去找了图片的版本 image 改了版本就可以了