Spring Boot application.yml 文件书写注意点

冒号 : 后面要有一个空格

server:
  port: 8080

spring:
  mvc:
    view:
      suffix: /WEB-INF/views/
      prefix: .jsp

  datasource:
    driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
    url: jdbc:sqlserver://xxx:1433;DataBaseName=xxx
    username: xxx
    password: xxx

mybatis:
  mapper-locations: classpath:/mapper/*Mapper.xml
  type-aliases-package: com.example.springboot.bean

你可能感兴趣的:(springboot)