Guest User

Untitled

a guest
Jul 17th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. package org.gable.statistics.conf.exp.ht.paddleWaddle;
  2.  
  3. import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder;
  4. import org.springframework.context.annotation.Bean;
  5. import org.springframework.context.annotation.Configuration;
  6. import org.springframework.context.annotation.Primary;
  7.  
  8. @Configuration
  9. public class DataSource {
  10. @Bean
  11. @Primary
  12. public javax.sql.DataSource dataSource() {
  13. return DataSourceBuilder
  14. .create()
  15. .username("root")
  16. .password("804947")
  17. .url("jdbc:mysql://127.0.0.1:3306/gable")
  18. .driverClassName("com.mysql.jdbc.Driver")
  19. .build();
  20. }
  21. }
Add Comment
Please, Sign In to add comment