src/main/resources/application.yml
@@ -7,13 +7,16 @@ context-path: /land spring: mvc: pathmatch: matching-strategy: ant_path_matcher datasource: username : postgres password: postgres url : jdbc:postgresql://192.168.20.39:5433/langfang driver-class-name: org.postgresql.Driver type: com.alibaba.druid.pool.DruidDataSource # 自定义数据源 #url : jdbc:postgresql://127.0.0.1:5433/postgres #Spring Boot 默认是不注入这些属性值的,需要自己绑定 #druid 数据源专有配置 initialSize: 5