Java 属性';简介';不允许出现在元素';bean:bean';
不知道这里发生了什么。我的XML bean定义架构正在使用:Java 属性';简介';不允许出现在元素';bean:bean';,java,spring,spring-mvc,Java,Spring,Spring Mvc,不知道这里发生了什么。我的XML bean定义架构正在使用: <?xml version="1.0" encoding="UTF-8"?> <beans:beans xmlns="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jpa="http://www.springframew
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/mvc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jpa="http://www.springframework.org/schema/data/jpa"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://www.springframework.org/schema/data/jpa
http://www.springframework.org/schema/data/jpa/spring-jpa-1.1.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd">
任何想法
profile
属性必须出现在beans
元素中,即:
<beans:beans profile="qa" ... >
<bean id="..." ...></bean>
</beans>
profile
属性必须出现在bean
元素中,即:
<beans:beans profile="qa" ... >
<bean id="..." ...></bean>
</beans>
<beans:beans profile="qa" ... >
<bean id="..." ...></bean>
</beans>
<beans:beans>
<bean id="..." ...></bean>
<beans:beans profile="prod" ... >
<bean id="..." ...></bean>
</beans>
<beans:beans profile="qa" ... >
<bean id="..." ...></bean>
</beans>
</beans>