• mybatis模板


    mapper

    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
            "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
    <!--namespace=绑定一个对应的Dao/Mapper接口-->
    <mapper>
    
    </mapper>
    View Code

    mybatis核心配置文件

    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE configuration
            PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
            "http://mybatis.org/dtd/mybatis-3-config.dtd">
    <!--configuration核心配置文件-->
    <configuration>
        <environments default="development">
            <environment id="development">
                <transactionManager type="JDBC"/>
                <dataSource type="POOLED">
                    <property name="driver"
    value="com.mysql.jdbc.Driver"/>
                    <property name="url"
    value="jdbc:mysql://localhost:3306/mybatis?
    useSSL=true&amp;useUnicode=true&amp;characterEncoding=UTF8"/>
                    <property name="username" value="root"/>
                    <property name="password" value="123456"/>
                </dataSource>
            </environment>
        </environments>
    </configuration>
    View Code
  • 相关阅读:
    eclipse安装插件(具体过程省略)
    Linux权限
    Anaconda + python环境搭建
    Hadoop的shell命令
    安装Hadoop(单机)
    CentOS 7安装jdk
    Linux文档内容操作
    EOJ 3 玩具谜题
    [转载]基础算法——筛法求素数
    EOJ 3213 向右看齐
  • 原文地址:https://www.cnblogs.com/m987/p/12921329.html
Copyright © 2020-2023  润新知