server: port:8080 # 数据库数据源 spring: datasource: type: com.alibaba.druid.pool.DruidDataSource username: root password: root url: jdbc:mysql://localhost:3306/mybatis?useUnicode=true&characterEncoding=UTF-8 #数据库地址 driver-class-name: com.mysql.cj.jdbc.Driver #cj是8.0版本以上需要添加 mybatis: type-aliases-package: wupenghui.pojo # 别名 mapper-locations: classpath:/mybatis/*.xml # 存放xml文件
idea新手配置yml配置文件
最新推荐文章于 2024-05-08 21:38:46 发布