spring boot
有一个controller类,当请求执行成功,返回成功的响应。但客户端始终收到如下结果:
{
"timestamp": 1508916473439,
"status": 404,
"error": "Not Found",
"message": "No message available",
"path": "/api/v1/cm/switch"
}
解决办法:
controller添加@RestController
注解
spring boot
有一个controller类,当请求执行成功,返回成功的响应。但客户端始终收到如下结果:
{
"timestamp": 1508916473439,
"status": 404,
"error": "Not Found",
"message": "No message available",
"path": "/api/v1/cm/switch"
}
解决办法:
controller添加@RestController
注解