`

spring integration summary

 
阅读更多
<?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:int="http://www.springframework.org/schema/integration"
xmlns:int-jpa="http://www.springframework.org/schema/integration/jpa"
xmlns:int-jms="http://www.springframework.org/schema/integration/jms"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:stream="http://www.springframework.org/schema/integration/stream"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd
http://www.springframework.org/schema/integration/jms http://www.springframework.org/schema/integration/jms/spring-integration-jms.xsd
http://www.springframework.org/schema/integration/stream http://www.springframework.org/schema/integration/stream/spring-integration-stream.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd
http://www.springframework.org/schema/integration/jpa http://www.springframework.org/schema/integration/jpa/spring-integration-jpa.xsd
">

<context:annotation-config />
<context:component-scan base-package="com.test" />


<context:property-placeholder location="classpath:database.properties"
system-properties-mode="FALLBACK" />

<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="${database.mq.driver}" />
<property name="url" value="${database.mq.url}" />
<property name="username" value="${database.mq.user}" />
<property name="password" value="${database.mq.pass}" />
</bean>

<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
<constructor-arg ref="entityManagerFactory" />
</bean>

<bean id="entityManagerFactory"
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="jpaVendorAdapter" ref="vendorAdaptor" />
<property name="packagesToScan" value="com.test" />
</bean>

<bean id="entityManager"
class="org.springframework.orm.jpa.support.SharedEntityManagerBean">
<property name="entityManagerFactory" ref="entityManagerFactory" />
</bean>

<bean id="abstractVendorAdaptor" abstract="true">
<property name="generateDdl" value="false" />
<property name="database" value="ORACLE" />
<property name="showSql" value="false" />
</bean>

</beans>
分享到:
评论

相关推荐

    spring-boot-reference.pdf

    40. Spring Integration 41. Spring Session 42. Monitoring and Management over JMX 43. Testing 43.1. Test Scope Dependencies 43.2. Testing Spring Applications 43.3. Testing Spring Boot Applications 43.3...

    Spring-Web-Development-Summary

    在Spring Web Development Summary中,我们聚焦于Spring框架的网络应用开发。Spring是Java领域最流行的开源框架之一,尤其在企业级应用开发中占有主导地位。它提供了全面的基础设施支持,帮助开发者构建高质量、可...

    Spring.Boot.in.Action.2015.12.pdf

    4.1 Integration testing auto-configuration 77 4.2 Testing web applications 79 Mocking spring MvC 80- Testing web security 83 4.3 Testing a running application 86 Starting the server on a random port ...

    testing java microservices

    Summary Testing Java Microservices teaches you to implement unit and integration tests for microservice systems running on the JVM. You'll work with a microservice environment built using Java EE, ...

    Mule in Action, 2nd Edition

    Summary Mule in Action, Second Edition is a totally-revised guide covering Mule 3 fundamentals and best practices. It starts with a quick ESB overview and then dives into rich examples covering core ...

    前端-后端java的Util类的工具类

    │ spring.xml │ struts.xml │ ├─28个java常用的工具类 │ │ Base64.java │ │ Base64DecodingException.java │ │ CConst.java │ │ CharTools.java │ │ ConfigHelper.java │ │ Counter.java │ │ C...

    Apache Tomcat 7

    In addition to basic concepts and administration tasks, Apache Tomcat 7 covers some of the most frequently used advanced features of Tomcat, including security, Apache web server integration, load ...

    Game physics

    1.2 a summary of the topics 1.3 Examples and Exercises Basic Concepts from Physics 2.1 Rigid body Classification 2.2 Rigid body Kinematics 2.2.1 Single Particle 2.2.2 Particle Systems and ...

Global site tag (gtag.js) - Google Analytics