cvc-complex-type.2.4.d: invalid content was found starting with element

web.xml里面一直画红,是因为以前写成

<filter>
		<filter-name>hibernateFilter</filter-name>
		<filter-class>
			org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
		</filter-class>
		  <init-param>
			<param-name>singleSession</param-name>
			<param-value>true</param-value>
			<param-name>flushMode</param-name> 
		    <param-value>AUTO</param-value> 
		  </init-param>
	</filter>

这样没错 但是xml里面一直画红,项目也红,感觉不是很爽。修改成

 <init-param>
			<param-name>singleSession</param-name>
			<param-value>true</param-value>
		  </init-param>
		  <init-param>
			<param-name>flushMode</param-name> 
		    <param-value>AUTO</param-value> 
		  </init-param>

OK 红线就没了。。。happy 安静


你可能感兴趣的:(xml)