HTTP Status 500 - Request processing failed; nested exception is com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method findPage in the service com.pinyougou.sellergoods.service.BrandService. Tried 1 times of the providers [192.168.204.1:20881] (1/1) from the registry 192.168.3.142:2181 on the consumer 192.168.204.1 using the dubbo version 2.8.4. Last error is: Invoke remote method timeout. method: findPage, provider: dubbo://192.168.204.1:20881/com.pinyougou.sellergoods.service.BrandService?
解决方式
错误都在日志中有记录,仔细观察了之后发现,根本就没连接上数据库!!!
错误原因
打开dao配置文件,发现有一行红色报错!没有找到指定包。
原来是依赖没导完整!
缺少的依赖:com.github.pagehelper
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper</artifactId>
</dependency>