小编Rad*_*hna的帖子

cvc-complex-type.2.4.c:匹配的通配符是strict,但是没有为元素'context:property-placeholder'找到声明

任何人都可以帮助我解决以下错误,因为我刚开始春天?

cvc-complex-type.2.4.c: The matching wildcard is strict, but no         
declaration can be found for element 'context:property-placeholder'.
Run Code Online (Sandbox Code Playgroud)

我在applicationContext.xml中有以下配置:

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

<bean id="dataSource"class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName" value="${jdbc.driverClassName}"/>
<property name="url" value="${jdbc.url}"/>
<property name="username" value="${jdbc.username}"/>
<property name="password" value="${jdbc.password}"/>
</bean>
<context:property-placeholder location="src/jdbc.properties"/>
Run Code Online (Sandbox Code Playgroud)

spring

17
推荐指数
1
解决办法
4万
查看次数

标签 统计

spring ×1