sprintboot中的yaml文件比较麻烦,虽然有层次,记得规则:
采用空格的形式,都是偶数个空格,主关键字顶头,次之关键字换行2个空格
server: port: 9001 spring: application: name: tensquare-base #指定服务名 datasource: driverClassName: com.mysql.jdbc.Driver url: jdbc:mysql://192.168.159.128:3306/tensquare_base?characterEncoding=utf-8 username: root password: 123456 jpa: database: MySQL show-sql: true generate-ddl: true