eclipse启动maven项目遇到系列问题

在无网络环境下,作者在Eclipse中尝试运行Maven项目,遇到了数据库连接、依赖缺失及Tomcat启动失败等问题。通过连接数据库、复制本地Maven库、添加缺失依赖等步骤逐步解决问题。最终,由于旧Tomcat存在异常,作者更换了新的Tomcat版本后,项目成功启动。日志显示旧Tomcat中存在Bean创建异常和循环引用问题。
摘要由CSDN通过智能技术生成

eclipse启动maven项目遇到系列问题

遇到一个坑,领导让我在没网的eclipse上跑一个maven项目,之前并没有经验,小白又不小白的我跑了好几天都不行,一开始没有数据库,只安装了数据库,没有数据库,tomcat一直启动中,启动超时最后也没启动,后来想起来数据库在不在啊?连了一下这个数据库确实没有,然后导了一份数据库进去。(tomcat有日志这个东西,可以去看tomcat日志)
数据库导入完后,用了之前的maven库。没网明显不全,复制本地的maven库,用了自己的maven仓库,控制台打印找不到XXX.java,又是一个新问题,maven仓库有的依赖,但是pom.xml没有引入,导致运行的时候识别不到对应的jar包,添加依赖后解决。后来运行eclipse的Tomcat服务器,控制台打印
org.apache.catalina.startup.HostConfig deployDirectory 信息: 把web 应用程序部署到目录 [D:\apache-tomcat-8.5.68\webapps\ROOT],
后来索性换了个Tomcat,项目启动成功。

旧Tomcat打印的部分日志如下:

14:47:16.014 [localhost-startStop-1] WARN o.s.b.f.s.DefaultListableBeanFactory - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name ‘shiroFilter’: Requested bean is currently in creation: Is there an unresolvable circular reference?
14:47:16.649 [localhost-startStop-1] WARN o.a.cxf.bus.spring.OldSpringSupport - Import of META-INF/cxf/cxf-extension-soap.xml has been deprecated and is unnecessary.
14:47:16.680 [localhost-startStop-1] WARN o.s.b.f.s.DefaultListableBeanFactory - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name ‘shiroFilter’: Requested bean is currently in creation: Is there an unresolvable circular reference?
14:47:16.716 [localhost-startStop-1] WARN o.s.b.f.s.DefaultListableBeanFactory - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name ‘shiroFilter’: Requested bean is currently in creation: Is there an unresolvable circular reference?
14:47:25.750 [localhost-startStop-1] WARN o.s.b.f.s.DefaultListableBeanFactory - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name ‘shiroFilter’: Requested bean is currently in creation: Is there an unresolvable circular reference?
14:47:25.769 [localhost-startStop-1] WARN o.s.b.f.s.DefaultListableBeanFactory - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name ‘shiroFilter’: Requested bean is currently in creation: Is there an unresolvable circular reference?
14:47:25.783 [localhost-startStop-1] WARN o.s.b.f.s.DefaultListableBeanFactory - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name ‘shiroFilter’: Requested bean is currently in creation: Is there an unresolvable circular reference?

这部分代码找不到的文件是jar包里的东西,换了Tomcat之后问题就不复现了。
原本以为是一个很艰巨的任务,我嫌难,潜意识里在推辞,发现原来这个困难我自己也可以克服!

ps:Tomcat行不行先看看访问localhost:8080出不出现Apache Tomcat主页,没出现的话就是Tomcat的问题了
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值