properties 引入外部配置文件,具体见代码2
settings 标准日志工厂的实现,其实还可以实现其他功能的设置具体看中文文档
typeAliases 可以给实体类起别名
environments 配置运行环境
mappers 绑定接口或者是Mapper接口对应xml文件
代码一
代码二 外部配置文件 (db.properties)
driver=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/mybatis?useSSL=false&useUnicode=true&characterEncoding=utf8 username=root pwd=admin



