All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ms.beangle-ems-start.3.4.6.source-code.spring-config.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<beans>
  <bean id="hibernateConfig">
    <property name="properties">
      <props merge="true">
        <prop key="hibernate.show_sql">true</prop>
      </props>
    </property>
  </bean>
<!--
  <bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource" init-method="init" destroy-method="close">
    <property name="url" value="${db.url}" />
    <property name="username" value="sa" />
    <property name="password" value="" />
    <property name="filters" value="stat" />
    <property name="maxActive" value="20" />
    <property name="initialSize" value="1" />
    <property name="maxWait" value="60000" />
    <property name="timeBetweenEvictionRunsMillis" value="3000" />
    <property name="minEvictableIdleTimeMillis" value="300000" />
    <property name="validationQuery" value="SELECT 'x'" />
    <property name="testWhileIdle" value="true" />
    <property name="testOnBorrow" value="false" />
    <property name="testOnReturn" value="false" />
    <property name="poolPreparedStatements" value="true" />
    <property name="maxPoolPreparedStatementPerConnectionSize" value="20" />
  </bean>

  <bean id="sessionDataSource" class="com.alibaba.druid.pool.DruidDataSource" init-method="init" destroy-method="close">
    <property name="url" value="${db.url}" />
    <property name="username" value="sa" />
    <property name="password" value="" />
    <property name="filters" value="stat" />
    <property name="maxActive" value="20" />
    <property name="initialSize" value="1" />
    <property name="maxWait" value="60000" />
    <property name="timeBetweenEvictionRunsMillis" value="3000" />
    <property name="minEvictableIdleTimeMillis" value="300000" />
    <property name="validationQuery" value="SELECT 'x'" />
    <property name="testWhileIdle" value="true" />
    <property name="testOnBorrow" value="false" />
    <property name="testOnReturn" value="false" />
    <property name="poolPreparedStatements" value="true" />
    <property name="maxPoolPreparedStatementPerConnectionSize" value="20" />
  </bean>
  -->

  <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
    <property name="jndiName">
      <value>java:comp/env/jdbc/beangle</value>
    </property>
  </bean>
  <bean id="sessionDataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
    <property name="jndiName">
      <value>java:comp/env/jdbc/beangle</value>
    </property>
  </bean>
  
  <bean id="recaptchaProvider" class="org.beangle.struts2.captcha.service.CaptchaProvider" primary="true">
    <property name="publickey" value="6LcAY9cSAAAAADLHUtPR0Vo1bXTA90fXH8KmnneU"/>
    <property name="privatekey" value="6LcAY9cSAAAAANedWHNl8NUHyS3ZfJhYf-9Vd6b9"/>
  </bean>
  
</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy