Servlet.init() for servlet SpringMVC threw exception
Servlet.init() for servlet SpringMVC threw exception错误
今天在敲代码的过程中遇到了Servlet.init() for servlet SpringMVC threw exception的问题
检查了一遍发现web出现错误如下:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘itemController’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.dream.service.ItemService com.dream.controller.ItemController.itemService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘itemService’: FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.dream.service.ItemService. No provider available for the service com.dream.service.ItemService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=dream_manager_web&dubbo=2.5.3&interface=com.dream.service.ItemService&methods=list,selectBykey&pid=648&revision=1.0-SNAPSHOT&side=consumer×tamp=1584950033676 to the consumer 169.254.38.131 use dubbo version 2.5.3
最终排查出来的是manager中的分页插件pagehelper出错
原来是因为在配置xml文件时配置的问题,原先我配置的是:
这样是有问题的,更改后为
这样终于没有再出错了