学习笔记-SpringBoot项目配置
配置文件格式
yml配置文件
#定义一个对象
user:name: "zhangsan"age: 18sex: "男"address: "上海"height: 180weight: 80#定义一个数组list:- "张三"- "李四"- "王五"
#application.ymlspring:application:name: mybatis-quickstart#数据库连接信息datasource:url: jdbc:mysql://localhost:3306/web01driver-class-name: com.mysql.cj.jdbc.Driverusername: rootpassword: Sqlmybatis:configuration:log-impl: org.apache.ibatis.logging.stdout.StdOutImplmapper-locations: classpath:mapper/*.xml