Spring boot yml JPA MYBATIS Enviroment配置

spring: 
  profiles:
    active: test
  datasource: 
    username: root
    password: root
    driver-class-name: com.mysql.jdbc.Driver
    url: jdbc:mysql://127.0.0.1:3306/demo-security
  jpa:
    database: MYSQL
    database-platform: org.hibernate.dialect.MySQL5Dialect
    show-sql: true
    hibernate: 
      ddl-auto: update
  jackson:
    date-format: yyyy-MM-dd HH:mm:ss
    time-zone: Asia/Chongqing
    
server: 
  port: 8080
    
---
spring: 
  profiles: dev
    
server: 
  port: 8070




---
spring: 
  profiles: test
    
server: 
  port: 8083

你可能感兴趣的:(SpringBoot)