spring: profiles: active: dev datasource: driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://127.0.0.1:3306/dbgirl username: root password: root jpa: hibernate: ddl-auto: create show-sql: true
请将dev.yml命名为application-dev.yml;按命名规则命名,配置文件才能够读取到对应的内容