【发布时间】:2015-06-22 18:16:04
【问题描述】:
我收到错误:
cvc-complex-type.2.4.a: Invalid content was found starting with element
'sec:http'. One of '{"http://www.springframework.org/schema/beans":beans}'
is expected.
我只是用数据源创建一个本地弹簧配置文件,但不知道我需要包含什么。
我的命名空间配置包括:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:c="http://www.springframework.org/schema/c"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.2.xsd">
发生错误是因为:<beans profile="local"></beans>
【问题讨论】:
标签: xml spring spring-profiles