我收到错误消息:
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>