如何使用spring boot从Soring Framework中intellij中的Db获取数据?

问题描述

postman3

Postman Screens Browser Screenshot我想获取员工数据,但显示错误解决这个问题的方法是什么? 我已经包含了所有依赖项

{
    "timestamp": "2020-12-21T12:53:24.307+00:00","status": 404,"error": "Not Found","message": "","path": "/bookme/getEmpById"
}

enter image description here

解决方法

您是否配置了 server.servlet.context-path 属性?如果已配置,将其添加到端口