=============== MyBatis配置文件 =============== mybatis-config.xml是MyBatis框架的配置文件,主要用于配置MyBatis数据源及属性信息。 1 properties .... /src/main/resources/jdbc.properties driver=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/ssmdb?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&useSSL=false username=root password=123456 另存为模板。 .... 2 settings 3 typeAliases /src/main/resources/mappers/StudentMapper.xml 4 plugins 5 environments - JDBC负责事务管理,允许手动提交回滚 - 容器负责事务管理,不能手动提交回滚 - 使用连接池 - 不使用连接池 - 使用环境公共配置 6 mappers 例程:HelloMyBatis