Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jpa="http://www.springframework.org/schema/data/jpa"
- xmlns:context="http://www.springframework.org/schema/context"
- xmlns:security="http://www.springframework.org/schema/security"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
- <bean id="dataSource" class="org.apache.tomcat.dbcp.dbcp2.BasicDataSource">
- <property name="driverClassName" value="org.postgresql.Driver"/>
- <property name="defaultAutoCommit" value="false"/>
- <property name="password" value="bleser1111"/>
- <property name="username" value="bleser"/>
- <property name="url" value="jdbc:postgresql://localhost:5432/ssp_db"/>
- </bean>
- <bean id="entityManager" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
- <property name="packagesToScan" value="dev.bleser.ssp.entity"/>
- <property name="dataSource" ref="dataSource"/>
- <property name="jpaVendorAdapter">
- <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
- <property name="generateDdl" value="true"/>
- <property name="showSql" value="true"/>
- </bean>
- </property>
- </bean>
- <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
- <property name="entityManagerFactory" ref="entityManager"/>
- </bean>
- <bean id="persistenceExceptionTranslationPostProcessor"
- class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor"/>
- <bean id="cookieCsrfTokenRepository" class="org.springframework.security.web.csrf.CookieCsrfTokenRepository">
- <property name="cookieHttpOnly" value="true"/>
- </bean>
- <bean
- id="springSecurityFilterChain"
- class="org.springframework.web.filter.DelegatingFilterProxy"/>
- <jpa:repositories base-package="dev.bleser.ssp.repository" entity-manager-factory-ref="entityManager"
- transaction-manager-ref="transactionManager"/>
- <context:annotation-config/>
- </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement