cvc-complex-type.2.4.d: invalid content was found starting with element
阿新 • • 發佈:2019-01-22
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