Spring Boot also provides a utility builder class DataSourceBuilder that can be used to create one of the standard data sources (if it is on the classpath). The builder can detect the one to use based on what’s available on the classpath. It also auto detects the driver based on the JDBC url.

@Bean
@ConfigurationProperties("app.datasource")
public DataSource dataSource() {
return DataSourceBuilder.create().build();
}

https://docs.spring.io/spring-boot/docs/1.5.8.RELEASE/reference/htmlsingle/#boot-features-external-config-3rd-party-configuration

最新文章

  1. 【叉积】【sdut 2508 图形密码】
  2. 【Cocos2d-Js基础教学(6)网络层(弱联网)的封装及使用】
  3. 本地Git仓库与Github远程仓库同步
  4. mysql级联更新的两种方式:触发器更新和外键
  5. XShell 屏幕锁定的恢复方法(Ctrl+Q)
  6. 解决数据库Operation not allowed when innodb_forced_recovery > 0
  7. No module named MYSQLdb 问题解决
  8. Hbase0.96源码之HMaster(一)
  9. MySQL数据表的创建、查看、插入
  10. anaconda的使用
  11. 在浏览器输入URL时发生了什么
  12. JS-原型的某些概念
  13. form表单的提交方式
  14. CF1110H Modest Substrings AC自动机、DP
  15. vsftp安装与配置for Linux
  16. CRM工具简介
  17. telnet ip/域名 端口 是否成功
  18. Delphi中,除了应用程序主窗口会显示在任务栏上,其它窗口默认都不会显示在任务栏.
  19. flex 分页
  20. 二进制mysql安装相关知识

热门文章

  1. 写一个dup2功能相同的函数,不能调用 fcntl 函数,并且要有出错处理
  2. 内核调试工具 — kdump & crash
  3. Leetcode_238_Product of Array Except Self
  4. ZooKeeper leader election
  5. 属性动画基础之ValueAnimator
  6. ruby抓取web页面
  7. mac OS X 10.10更新gcc 4.9.1后默认无法编译连接的问题
  8. 负载均衡之让nginx跑起来
  9. Layx——网页弹窗最佳选择.
  10. 完美解决ScollView内嵌ListView的问题