Advertisement
Guest User

Untitled

a guest
Oct 9th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.29 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3.     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.     xmlns:context="http://www.springframework.org/schema/context"
  5.     xmlns:mvc="http://www.springframework.org/schema/mvc"
  6.     xsi:schemaLocation="
  7.        http://www.springframework.org/schema/beans
  8.        http://www.springframework.org/schema/beans/spring-beans-4.1.xsd
  9.        http://www.springframework.org/schema/context
  10.        http://www.springframework.org/schema/context/spring-context-4.1.xsd
  11.        http://www.springframework.org/schema/mvc
  12.       http://www.springframework.org/schema/mvc/spring-mvc-4.1.xsd">
  13.  
  14.     <!-- <bean id="sysrota" class="factory.DataSourceFactory"/> -->
  15.     <!-- <bean id="sysrotaDataSource" factory-bean="sysrota" factory-method="createDataSource"/> -->
  16.  
  17.     <context:annotation-config />
  18.     <context:component-scan
  19.         base-package="com.google,com.rastro,db,email,excecao,jdbc,negocio,persistencia,relatorio,session,setup,spring,util,util.sql,
  20.                                           dao,negocio,listener,upload,factory,br.com.sysrota.resources" />
  21.  
  22.     <!-- Configuracao do DataSource -->
  23.  
  24.  
  25.     <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
  26.         <property name="driverClassName" value="org.postgresql.Driver" />
  27.  
  28.     <property name="url" value="jdbc:postgresql://localhost/sysrota" />
  29.     <property name="connectionProperties" value="currentSchema=sysrota;"/>
  30.     <property name="username" value="postgres" />
  31.     <property name="password" value="admin" />  
  32.         <property name="maxWait" value="10000" />
  33.         <property name="maxActive" value="2" />
  34.         <property name="initialSize" value="1" />
  35.         <property name="removeAbandonedTimeout" value="30" />
  36.         <property name="removeAbandoned" value="true" />
  37.         <property name="LogAbandoned" value="true" />
  38.         <property name="defaultReadOnly" value="false" />
  39.     </bean>
  40.  
  41. <!--    <bean id="genericMapper" class="web.GenericMapper" /> -->
  42. <!--    <mvc:annotation-driven> -->
  43. <!--        <mvc:message-converters> -->
  44. <!--            <bean -->
  45. <!--                class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter"> -->
  46. <!--                <property name="objectMapper" ref="genericMapper"></property> -->
  47. <!--            </bean> -->
  48. <!--        </mvc:message-converters> -->
  49. <!--    </mvc:annotation-driven> -->
  50.  
  51. </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement