Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package org.gable.statistics.conf.exp.ht.paddleWaddle;
- import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder;
- import org.springframework.context.annotation.Bean;
- import org.springframework.context.annotation.Configuration;
- import org.springframework.context.annotation.Primary;
- @Configuration
- public class DataSource {
- @Bean
- @Primary
- public javax.sql.DataSource dataSource() {
- return DataSourceBuilder
- .create()
- .username("root")
- .password("804947")
- .url("jdbc:mysql://127.0.0.1:3306/gable")
- .driverClassName("com.mysql.jdbc.Driver")
- .build();
- }
- }
Add Comment
Please, Sign In to add comment