《玩转 Spring 全家桶》学习笔记Day2

70 阅读1分钟
  1. 使用了jdbc,H2和web的组件,
  2. 通过localhost:8080/actuator/beans,可以通过web接口查看所有的beans
  3. 可以在代码中编写数据库配置,也可以在配置文件中配置
  4. 多数据源的配置,①不同的数据配置要分开②配置@Primary的bean
  5. spring boot 1使用了tomcat,springboot2以上使用了HikariCP

image.png