Advertisement
Guest User

Spring Batch Test Inf Config

a guest
Nov 8th, 2016
202
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.chrisbeech.batch.config;
  2.  
  3.  
  4.  
  5. import javax.sql.DataSource;
  6.  
  7. import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder;
  8. import org.springframework.context.annotation.Bean;
  9. import org.springframework.context.annotation.Configuration;
  10.  
  11. @Configuration
  12. public class InfrastructureConfiguration {
  13.    
  14.     @Bean
  15.     public DataSource dataSource(){
  16.          return DataSourceBuilder.create()
  17.                     .url("jdbc:oracle:thin:@localhost:1521:xe")
  18.                     .driverClassName("oracle.jdbc.OracleDriver")
  19.                     .username("springbatch")
  20.                     .password("password")
  21.                     .build();
  22.     }
  23.    
  24. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement