15 lines
390 B
Java
15 lines
390 B
Java
package com.kri.notihub.server.config;
|
|
|
|
import javax.sql.DataSource;
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Configuration;
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
|
@Configuration
|
|
public class JdbcConfig {
|
|
|
|
@Bean
|
|
public JdbcTemplate jdbcTemplate(DataSource dataSource) {
|
|
return new JdbcTemplate(dataSource);
|
|
}
|
|
} |