Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.chrisbeech.batch.config;
- import javax.sql.DataSource;
- import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder;
- import org.springframework.context.annotation.Bean;
- import org.springframework.context.annotation.Configuration;
- @Configuration
- public class InfrastructureConfiguration {
- @Bean
- public DataSource dataSource(){
- return DataSourceBuilder.create()
- .url("jdbc:oracle:thin:@localhost:1521:xe")
- .driverClassName("oracle.jdbc.OracleDriver")
- .username("springbatch")
- .password("password")
- .build();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement