Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xml Spring 3.1:找不到元素';豆子';_Xml_Spring_Tomcat - Fatal编程技术网

Xml Spring 3.1:找不到元素';豆子';

Xml Spring 3.1:找不到元素';豆子';,xml,spring,tomcat,Xml,Spring,Tomcat,以下是我的applicationContext.xml: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"

以下是我的applicationContext.xml:

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd 
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">

<bean name="documentTrashCleanerJob" class="org.springframework.scheduling.quartz.JobDetailBean">
    <property name="jobClass"
        value="com.ye.cron.job.DocumentTrashCleanerJob" />
</bean>

<!-- Add to cron the job execution -->
<bean id="cronTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
    <property name="jobDetail" ref="documentTrashCleanerJob" /><!-- 
        run every night at 00 am -->
    <property name="cronExpression" value="0 0/5 * * * ?" />
</bean>

<!-- Registering in the scheduler -->
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
    <property name="triggers">
        <list>
            <ref bean="cronTrigger" />
        </list>
    </property>
</bean>
谁能告诉我我做错了什么吗?

applicationContext.xml的最底层缺少结束标记。马克·安德烈是对的。
</beans> closing tag is missing from the very bottom of your applicationContext.xml. Marc-Andre is right.

正如我在对您的问题的评论中所说:


bean
标记在
applicationContext.xml
中未关闭


只需在文件末尾添加
,它就可以工作。

类路径上有spring的jar吗?是的,我的类路径上有spring的jar。在applicationContext.xml中,
bean
标记没有关闭。
</beans> closing tag is missing from the very bottom of your applicationContext.xml. Marc-Andre is right.