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
![安静](http://static.blog.csdn.net/xheditor/xheditor_emot/default/quiet.gif)