Close developer mode development environment


title: 'closed development environment developer mode [Struts2, Hibernate]'
DATE: 2018-08-06 21:58:43
Tags: [the Struts2, the Hibernate]
---

In the development process in order to improve the efficiency of development aid in the development of open settings, such as Struts2 developer mode, Hibernate statement output, etc., so we can easily find the error faster. But when in actual use is the need to put these things off, so as to reduce resource consumption.

Struts2 Close developer mode:

    ......
    <!-- 设置开发模式,将value值设为false,则关闭 -->
    <constant name="struts.devMode" value="false" />
    ......

Hibernate close statement output:

...
        <!-- 输出底层sql语句,将其改为false -->
        <property name="hibernate.show_sql">false</property>
        <!-- 输出底层sql语句格式 -->
        <property name="hibernate.format_sql">true</property>
...

Guess you like

Origin www.cnblogs.com/flytree/p/11622674.html
Recommended