use postman call eureka REST api register return 400 Bad request -
why receive 400 error bad request ?
eureka server url http://localhost:8761/eureka/apps/service1, have start
use postman send post request register, headers set:
"content-type", "application/json", request body :{ "instance": { "hostname":"tpdeva13", "app":"service1", "ipaddr":"tpdeva13", "vipaddress":"tpdeva13", "securevipaddress":"tpdeva13", "status":"up", "port":{ "$":8889, "@enabled":"true" }, "datacenterinfo":{ "@class":"com.netflix.appinfo.instanceinfo$defaultdatacenterinfo", "name":"tpdeva13" } } }
- after send request, server return 400 bad request, can't find error ?
Comments
Post a Comment