启动tomcat报错 :无法找到beandefinitiondecorator元素)

严重: Context initialization failed
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Cannot locate BeanDefinitionDecorator for element [property-placeholder]
Offending resource: file [D:\Program Files\apache-tomcat-6.0.44\webapps\ItcastOA\WEB-INF\classes\applicationContext.xml]

web.xml:


index.jsp

<!-- 配置Struts2的核心的过滤器 -->
<filter>
    <filter-name>struts2</filter-name>
    <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
    <filter-name>struts2</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>


<!-- 配置Spring的用于初始化容器对象的监听器 -->
<listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>classpath:applicationContext*.xml</param-value>
</context-param>


applicationContext.xml:

<!-- 自动扫描与装配bean -->
<context:component-scan base-package="com.itcast.oa"></context:component-scan>


<!-- 配置sessionFactory -->

<bean id="sessionFactory"
    class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">

    <!-- 指定配置文件路径 -->
    <property name="configLocation" value="classpath:hibernate.cfg.xml"></property>

    <!-- 导入外部的properties文件 -->
    <context:property-placeholder location="classpath:jdbc.properties" />

    <!-- 配置c3p0数据库连接池 -->
    <property name="dataSource">
        <bean class="com.mchange.v2.c3p0.ComboPooledDataSource">
            <!-- 数据连接信息 -->
            <property name="driverClass" value="${driverClass}"></property>
            <property name="jdbcUrl" value="${jdbcUrl}"></property>
            <property name="user" value="${user}"></property>
            <property name="password" value="${password}"></property>
            <!-- 指定连接池的最大连接数 -->
            <property name="maxPoolSize" value="15"></property>
            <!-- 指定连接池的最小连接数 -->
            <property name="minPoolSize" value="3"></property>
            <!-- 指定连接池的初始化连接数 -->
            <property name="initialPoolSize" value="3"></property>
            <!-- 指定连接池的最大空闲时间 -->
            <property name="maxIdleTime" value="1800"></property>
        </bean>
    </property>
</bean>

你这边整合hibernate,
为什么又要


个人觉得完全可以抛弃掉,完全在applicationContext.xml中配置完毕就好,也不知道这错误是不是因为映射文件导入失败造成的

```<!-- 导入外部的properties文件 -->