访问api模块: http://localhost:8081/user/test
{
message: "Hi, this is the Greeter API"
}
但是访问gateway 405
request url : http://localhost:8080/user/test
{
id: "go.micro.client.transport",
code: 500,
detail: "405 Not Allowed: <html> <head><title>405 Not Allowed</title></head> <body bgcolor="white"> <center><h1>405 Not Allowed</h1></center> <hr><center>nginx/1.8.1</center> </body> </html> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> ",
status: "Internal Server Error"
}
auth和broker注释掉也报这个错误,请问gateway如何访问其他微服务模块的呢? 谢谢。
访问api模块: http://localhost:8081/user/test
但是访问gateway 405
request url : http://localhost:8080/user/test
auth和broker注释掉也报这个错误,请问gateway如何访问其他微服务模块的呢? 谢谢。