Giter Site home page Giter Site logo

关于项目学习 about examination_system HOT 25 CLOSED

jaceyrx avatar jaceyrx commented on July 19, 2024
关于项目学习

from examination_system.

Comments (25)

ungenius avatar ungenius commented on July 19, 2024 13

@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.

ungenius avatar ungenius commented on July 19, 2024 10

<resource> <directory>${basedir}/src/main/resources</directory> </resource>

from examination_system.

jxnu-liguobin avatar jxnu-liguobin commented on July 19, 2024 6

我只想说项目是各种错误

from examination_system.

amoxuk avatar amoxuk commented on July 19, 2024 1

pom.xml里面加上 ${basedir}/src/main/resources 启动tomcat就可以了

from examination_system.

aimerwhy avatar aimerwhy commented on July 19, 2024 1

@JaceyRx 你好 登录后报404错误,请问是什么原因啊?

from examination_system.

nickalc avatar nickalc commented on July 19, 2024

@mccken 请问你的能启动起来吗

from examination_system.

JaceyRx avatar JaceyRx commented on July 19, 2024

@nickalc 你的不能运行起来吗? @mccken 他的可以运行起来

from examination_system.

JaceyRx avatar JaceyRx commented on July 19, 2024

@jxnu-liguobin 能明确一点吗?是项目跑不起来,还是项目代码逻辑不通什么的

from examination_system.

Hitaylor avatar Hitaylor commented on July 19, 2024

我用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.

JaceyRx avatar JaceyRx commented on July 19, 2024

@Hitaylor 你有没有用Maven编译一遍项目?你的这个错误是 target/classes/ 目录下,找不到 [/WEB-INF/classes/spring/applicationContext-*.xml] 文件,也就是Spring的配置文件,觉得可能是你编译有时的问题..............

from examination_system.

Hitaylor avatar Hitaylor commented on July 19, 2024

我在idea和netbeans中都采用maven编译了,也用了“根据依赖关系编译”,都没有成功。我对Spring不熟悉,看文档里没有说指定配置文件之类的,我看resource目录下有几个配置文件,不知道怎么配置。谢谢。

from examination_system.

Hitaylor avatar Hitaylor commented on July 19, 2024

我使用maven进行了clean和compile,得到target目录以及examination_system.war,然后我选择target中的Examination_System中的login.jsp运行。仍然无法执行。我又将war文件放到tomcat的webapps目录中,仍然无法运行啊。

from examination_system.

leitiannian avatar leitiannian commented on July 19, 2024

用eclipse无法运行啊, 404错误。 能不能加个qq给解决一下 谢谢 386502782

from examination_system.

OneIT-Dog avatar OneIT-Dog commented on July 19, 2024

您好!最近在学习您的项目,请问有问题能加QQ详细咨询吗?我的QQ是416497502 谢谢了!

from examination_system.

vrmight avatar vrmight commented on July 19, 2024

我用eclipse导入时一直报web.xml is missing and is set to true 但是这个文件有的啊,有人遇到这个问题么?

from examination_system.

vrmight avatar vrmight commented on July 19, 2024

有没有大佬用eclipse导入成功并且成功运行的? 求帮我弄一下..

from examination_system.

CustomFN avatar CustomFN commented on July 19, 2024

@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.

ttxs0109 avatar ttxs0109 commented on July 19, 2024

你好,项目运行起来,静态资源怎么全是404你们有吗?

from examination_system.

Timeriovo avatar Timeriovo commented on July 19, 2024

@yiyuan0109 我跟你一样,很麻烦。你弄好了吗

from examination_system.

Timeriovo avatar Timeriovo commented on July 19, 2024

我的项目也是各种错

from examination_system.

Zeng1998 avatar Zeng1998 commented on July 19, 2024

1
2
想请问为什么会这样,跑不起来??

from examination_system.

Zeng1998 avatar Zeng1998 commented on July 19, 2024

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.

leitiannian avatar leitiannian commented on July 19, 2024

from examination_system.

dulestar avatar dulestar commented on July 19, 2024

@JaceyRx 你好,类拷贝BeanUtils这个方法有些使用的是spring的,有些使用的是apache的,两个参数左右赋值顺序不一样,为什么不统一一下,避免混淆。

from examination_system.

Junyerw avatar Junyerw commented on July 19, 2024

你好,请问可以和你可以交流一下吗,QQ3130482720,谢谢

from examination_system.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.