代码之家  ›  专栏  ›  技术社区  ›  luke

休眠启动错误

  •  0
  • luke  · 技术社区  · 14 年前

    当Hibernate启动时,我收到一条奇怪的消息,打印出来作为我们的标准,我无法诊断它。

    以下是打印出来的消息(它在Eclipse控制台中显示为红色,因此我相信这意味着它是被写入标准错误的):

    initialPoolSize-> coercedPropVal: 1
    maxIdleTime-> coercedPropVal: 1500
    maxPoolSize-> coercedPropVal: 15
    maxStatements-> coercedPropVal: 50
    minPoolSize-> coercedPropVal: 1
    initialPoolSize-> coercedPropVal: 1
    maxIdleTime-> coercedPropVal: 1500
    maxPoolSize-> coercedPropVal: 15
    maxStatements-> coercedPropVal: 50
    minPoolSize-> coercedPropVal: 1
    

    没有错误信息或其他信息。这是我的hibernate.cfg.xml

    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE hibernate-configuration
        PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
        "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
    <hibernate-configuration>
    <session-factory>
        <!-- local connection properties -->
        <property name="connection.provider_class">
            org.hibernate.connection.C3P0ConnectionProvider
        </property>
        <property name="hibernate.connection.url">
            URL...
        </property>
        <property name="hibernate.connection.driver_class">
            oracle.jdbc.driver.OracleDriver
        </property>
        <property name="hibernate.jdbc.batch_size">20</property>
        <property name="hibernate.connection.username">USER_NAME</property>
        <property name="hibernate.connection.password">PASSWORD</property>
        <property name="hibernate.c3p0.min_size">1</property>
        <property name="hibernate.c3p0.max_size">15</property>
        <property name="hibernate.c3p0.timeout">1500</property>
        <property name="hibernate.c3p0.max_statements">50</property>
        <property name="hibernate.order_inserts">true</property>
        <property name="hibernate.current_session_context_class">thread</property>
        <property name="hibernate.dialect">
            org.hibernate.dialect.Oracle10gDialect
        </property>
    
        <property name="hibernate.show_sql">false</property>
        <property name="hibernate.transaction.factory_class">
            org.hibernate.transaction.JDBCTransactionFactory
        </property>
    
        <mapping ...>
        <mapping ...>
    </session-factory>
    </hibernate-configuration>
    

    尽管有这个错误,但是项目中的每件事情都可以正常工作,我只是不想让这个随机的不可识别的文本进入我的日志文件。

    我试过四处寻找,但似乎找不到任何关于这个的信息。

    提前谢谢

    1 回复  |  直到 14 年前
        1
  •  4
  •   Bozho    14 年前

    你为什么认为这是一个错误?不是-它是打印出来的连接池选项。