【发布时间】:2019-01-26 16:31:05
【问题描述】:
在eclipse中编辑applicationContext.xml时,如下内容
<bean name="data-bus" class="XXX.mvp.databus.OnlineClassDatabusConfiguration">
<filter-regex>vip_oc.online_class, vip.student</filter-regex>
<poll-timeout>300</poll-timeout>
<auto-offset-reset-config>earliest</auto-offset-reset-config>
<group-id>test</group-id>s
<topic-test1>vip_oc</topic-test1>
<topic-test2>vip</topic-test2>
<bootstrap-servers>127.0.0.1:9092</bootstrap-servers>
<max-poll-records>300</max-poll-records>
</bean>
引发错误:
cvc-complex-type.2.4.a:发现以元素“filter-regex”开头的无效内容。 '{"http:// 之一 www.springframework.org/schema/beans":description, "http://www.springframework.org/schema/ beans":meta, "http://www.springframework.org/schema/beans":constructor-arg, "http:// www.springframework.org/schema/beans":property, "http://www.springframework.org/schema/ beans":qualifier, "http://www.springframework.org/schema/beans":lookup-method, "http:// www.springframework.org/schema/beans":replaced-method, WC[##other:"http:// www.springframework.org/schema/beans"]}' 是预期的。
我用谷歌搜索了这个错误,有些地方说订单很重要。我尝试重新排列 bean 内的项目,但错误仍然存在。
怎么了?
【问题讨论】:
标签: xml spring-mvc applicationcontext