Comments (25)
@Hitaylor @JaceyRx 哈哈我也出现那样的问题了,然后在网上找了两个小时,慢慢解决了,这个项目部的pom.xml中没有将resources目录编译进去,你打开你现在导入项目的web.xml会发现有两处错误,其中一个可以在pom.xml中加上这个
${basedir}/src/main/resources
但是我的web.xml中spring容器还是报错,就将它改成了classpath:spring/applicationContext-*.xml这个。
然后运行项目就可以了......
哈哈还有一个小坑,就是在配置tomcat的时候,使application context保持"/"就可以,不要自己加目录名
from examination_system.
<resource> <directory>${basedir}/src/main/resources</directory> </resource>
from examination_system.
我只想说项目是各种错误
from examination_system.
pom.xml里面加上 ${basedir}/src/main/resources 启动tomcat就可以了
from examination_system.
@JaceyRx 你好 登录后报404错误,请问是什么原因啊?
from examination_system.
@mccken 请问你的能启动起来吗
from examination_system.
@nickalc 你的不能运行起来吗? @mccken 他的可以运行起来
from examination_system.
@jxnu-liguobin 能明确一点吗?是项目跑不起来,还是项目代码逻辑不通什么的
from examination_system.
我用netbeans编译的,但是报错如下:
严重: Exception while loading the app
严重: Undeployment failed for context /Examination_system/
严重: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.springframework.beans.factory.BeanDefinitionStoreException: Could not resolve bean definition resource pattern [/WEB-INF/classes/spring/applicationContext-*.xml]; nested exception is java.io.FileNotFoundException: ServletContext resource [/WEB-INF/classes/spring/] cannot be resolved to URL because it does not exist
能否提供更完整的文档呀?谢谢
from examination_system.
@Hitaylor 你有没有用Maven编译一遍项目?你的这个错误是 target/classes/ 目录下,找不到 [/WEB-INF/classes/spring/applicationContext-*.xml] 文件,也就是Spring的配置文件,觉得可能是你编译有时的问题..............
from examination_system.
我在idea和netbeans中都采用maven编译了,也用了“根据依赖关系编译”,都没有成功。我对Spring不熟悉,看文档里没有说指定配置文件之类的,我看resource目录下有几个配置文件,不知道怎么配置。谢谢。
from examination_system.
我使用maven进行了clean和compile,得到target目录以及examination_system.war,然后我选择target中的Examination_System中的login.jsp运行。仍然无法执行。我又将war文件放到tomcat的webapps目录中,仍然无法运行啊。
from examination_system.
用eclipse无法运行啊, 404错误。 能不能加个qq给解决一下 谢谢 386502782
from examination_system.
您好!最近在学习您的项目,请问有问题能加QQ详细咨询吗?我的QQ是416497502 谢谢了!
from examination_system.
我用eclipse导入时一直报web.xml is missing and is set to true 但是这个文件有的啊,有人遇到这个问题么?
from examination_system.
有没有大佬用eclipse导入成功并且成功运行的? 求帮我弄一下..
from examination_system.
@JaceyRx 项目运行成功了,但是登录的时候又报错了,请问是为什么?
Type Status Report
Message /login
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
from examination_system.
你好,项目运行起来,静态资源怎么全是404你们有吗?
from examination_system.
@yiyuan0109 我跟你一样,很麻烦。你弄好了吗
from examination_system.
我的项目也是各种错
from examination_system.
from examination_system.
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'collegeServiceImpl': Unsatisfied dependency expressed through field 'collegeMapper'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.system.mapper.CollegeMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
能帮忙解答一下吗???
from examination_system.
from examination_system.
@JaceyRx 你好,类拷贝BeanUtils这个方法有些使用的是spring的,有些使用的是apache的,两个参数左右赋值顺序不一样,为什么不统一一下,避免混淆。
from examination_system.
你好,请问可以和你可以交流一下吗,QQ3130482720,谢谢
from examination_system.
Related Issues (20)
- 前台有很多错误id,不知道博主自己发现没有
- 解决一些bug和复合条件查询,完善一些逻辑问题入学生名字的唯一,地址如下!
- css显示不出来 HOT 1
- 您好 这个项目的访问路径是多少?
- 作者可以留下联系方式吗
- 以example结尾的po包中的类的作用
- 我运行登录后显示404,作者能留个联系方式讨教一下吗?加个star哦!
- 终于弄出来了,pom.xml文件中加一些东西。 HOT 14
- 两个报错信息求教 HOT 3
- 试了所有账户和密码都跳转到错误提示页面:没有该用户 HOT 4
- idea终于跑成功了 HOT 7
- 能大概说说这是怎么实现的吗?
- 3q分享 HOT 2
- 404 /login资源找不到
- 已全部弄通
- There is a cross site scripting vulnerability exists in Examination_System
- 可以运行啦 HOT 2
- 在IDEA中可以运行了! HOT 2
- 若提示登录超时、无此用户...
- idea运行成功了,但是登录跳转却404
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from examination_system.