Springboot项目本地运行没有任何问题,能与前端以及数据库进行很好的连接,整体i代码都能完美运行,但将其打包成jar包后在服务器上运行却报错。
打包成jar包后在服务器上运行,能接收到前端所传输过来的数据,但却无法与数据库进行连接。查看日志发现,报如下错误:Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.example.demo.dao.AdminMapper.verifyPassword] with root cause
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.example.demo.dao.AdminMapper.verifyPassword
查看前端发现所报的错误如下:post 500
这