问题1
Failed to initialize end point associated with ProtocolHandler [“http-apr-8080”]
原因
8080端口号被占用,更换端口号即可
结果,启动成功
问题2
Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) onproject e3-manager-web: Failed to clean project: Failed to delete D:\java\e3-manager\e3-manager-web\target\tomcat\logs\access_log.2019-06-23 -> [Help 1]
原因
项目已经启动,无法再次启动,关闭项目
结果,重新启动,成功
问题3
六月 23, 2019 10:04:02 上午 org.springframework.web.context.support.XmlWebApplicationContext refresh
警告: Exception encountered during context initialization - cancelling refresh attempt: 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 cn.e3mall.service.ItemService cn.e3mall.controller.ItemController.itemService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [cn.e3mall.service.ItemService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations:
{@org.springframework.beans.factory.annotation.Autowired(required=true)}
六月 23, 2019 10:04:02 上午 org.springframework.web.servlet.DispatcherServlet initServletBean
严重: Context initialization failed
还有很多错误,这里就不贴上了,来张图
目前还没有解决,查资料表示是内存泄漏,我这里还没有修改成功,但是不影响项目启动。