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的问题了