MyBatis入门----MyBatis相关API、映射配置文件和核心配置文件,以及使用MyBatis传统方式实现Dao层

框架是一款半成品软件 ,我们可以基于这个半成品软件继续开发,来完成我们个性化的需求!

ORM介绍

ORM(Object Relational Mapping) :对象关系映射

​ 指的是持久化数据和实体对象的映射模式,为了解决面向对象与关系型数据库存在的互不匹配的现象的技术。

映射规则:
数据表→类
表字段→类属性
表数据→对象

MyBatis介绍

原始JDBC的操作问题分析
1.频繁创建和销毁数据库的连接会造成系统资源浪费从而影响系统性能。

​ 2.sql语询在代码中硬编码,如果要修改sql语询,就需要修改java代码,造成代码不易维护

​ 3.查询操作时, 需要手动将结果集中的数据封装到实体对象中。

​ 4.增删改查操作需要参数时,要手动将实体对象的数据设置到sq|语句的占位符。

原始JDBC的操作问题解决方案
1.使用数据库连接池初始化连接资源。
2.将sql语句抽取到配置文件中。
3.使用反射、内省等底层技术,将实体与表进行属性与字段的自动映射。

​ MyBatis是一-个优秀的基于Java的持久层框架,它内部封装了JDBC相关的操作 ,使开发者只需要关注SQL语询本身,而不需要花费精力去处理加载驱动、创建连接、创建执行者等复杂的操作。
​ MyBatis通过xml或注解的方式将要执行的各种Statement配置起来,并通过Java对象和Statement中SQL的动态参数进行映射生成最终要执行的SQL语句。
​ 最后MyBatis框架执行完SQL并将结果映射为Java对象并返回。采用ORM思想解决了实体和数据库映射的问题,对JDBC进行了封装,屏蔽了JDBCAPI底层访问细节,使我们不用与JDBCAPI打交道,就可以完成对数据库的持久化操作。

​ MyBatis官网: http://www.mybatis.org/mybatis-3/ N

入门程序

1.数据准备。

​ mysql里面的db0809pm数据库里面的student表

2.导入jar包。

将这两个jar包导入libs文件夹里面
image-20210812223257806

3.在src下创建映射配置文件。

StudentMapper.xml文件

<?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">
<mapper namespace="StudentMapper">
    <select id="selectAll" resultType="com.yy.Bean.Student">
        SELECT * FROM student
    </select>
</mapper>

4.在src下创建核心配置文件。

MyBatisConfig.xml文件

<?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>
    <environments default="mysql">
        <environment id="mysql">
            <transactionManager type="JDBC"></transactionManager>
            <dataSource type="POOLED">
                <property name="driver" value="com.mysql.jdbc.Driver"/>
                <property name="url" value="jdbc:mysql://127.0.0.1:3306/db0809pm"/>
                <property name="username" value="root"/>
                <property name="password" value="2184021338"/>
            </dataSource>
        </environment>
    </environments>
    <mappers>
        <mapper resource="StudentMapper.xml"/>
    </mappers>
</configuration>

5.编写测试类完成相关API的使用。

package com.yy.dao;

import com.yy.Bean.Student;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.junit.Test;

import java.io.InputStream;
import java.util.List;

/**
 * @author Marston
 * @date 2021/8/12
 */
public class StudentTest01 {

    //查询全部
    @Test
    public void selectAll() throws Exception{
        //1.加载核心配置文件
        InputStream is = Resources.getResourceAsStream("MyBatisConfig.xml");
        //2.获取Sq1SessionI厂对象
        SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(is);
        //3.通过SqISession. I厂对象获取Sq1Session对象
        SqlSession sqlSession = sqlSessionFactory.openSession();
        //4.执行映射配置文件中的sq1语句,并接收结果
        List<Student> list = sqlSession.selectList("StudentMapper.selectAll");
        //5.处理结果
        for(Student stu : list){
            System.out.println(stu);
        }
        //6.释放资源
        sqlSession.close();
        is.close();
    }
}

6.运行测试查看结果。

image-20210812223521399

小结

1.框架
框架是一款半成品软件,我们可以基于框架继续开发,从而完成一些个性化的需求。

2.ORM
对象关系映射,数据和实体对象的映射。

3.MyBatis
是一个优秀的基于Java的持久层框架,它内部封装了JDBC。
4.入门步骤
导jar包。
编写映射配置文件。
编写核心配置文件。
使用相应的API来完成编码。

Mybatis相关API

Resources

image-20210813102126963

SqlSessionFactoryBuilder

image-20210813102330098

SqlSessionFactory

image-20210813102552743

SqlSession*

image-20210813130451571

小结

●Resources
加载资源的工具类。
●SqISessionFactoryBuilder
获取SqISessionFactory工厂对象的功能类。
●SqISessionFactory
获取SqISession构建者对象的工厂接口。
指定事务的提交方式。
●SqISession
构建者对象接口。
执行SQL。
管理事务。
接口代理。

MyBatis映射配置文件

映射配置文件介绍

image-20210816195327551

StudentMapper.xml

配置文件的详细说明

参数如果为空会报错

<?xml version="1.0" encoding="UTF-8" ?>

<!--MyBatis的DTD约束-->
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!--
    mapper:核心根标签
    namespace属性:名称空间    要想执行里面的sql语句必须
                            要借助与名称空间配合上id才能找到这条sql语句
-->
<mapper namespace="StudentMapper">
<!--
    select:查询功能的标签
    id属性:唯一标识,与名称空间配合使用
    resultType属性:指定结果映射对象类型
                    执行完下面的查询的sql语句会用一些数据,
                    而这些数据我们想要将他们封装到那个对象中,
                    就通过这个属性来进行指定
    parameterType属性:指定参数映射对象类型,也就是参数的参数
                    如果有where这些条件的话,就通过parameterType来指定所需要的参数类型
-->
    <select id="selectAll" resultType="com.yy.Bean.Student" parameterType="">
        SELECT * FROM student
    </select>
</mapper>

查询的功能

image-20210816074806629

 <select id="selectById" resultType="com.yy.Bean.Student" parameterType="java.lang.Integer">
        SELECT * FROM student WHERE id = #{id}
    </select>
        
        
@Test
public void selectById() throws Exception{
    //加载核心配置文件
    InputStream is = Resources.getResourceAsStream("MyBatisConfig.xml");
    //获取sqlSession工厂对象
    SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(is);
    //通过工厂对象获取SqlSession对象
    SqlSession sqlSession = sqlSessionFactory.openSession();
    //执行映射配置文件的sql语句,并接受结果
    Student stu = sqlSession.selectOne("StudentMapper.selectById",3);
    //处理结果
    System.out.println(stu);
    sqlSession.close();
    is.close();
}

新增功能

image-20210816104552679

<!--    在parameterType里面传递过滤一个学生对象,如何从学生对象里面获取id、name、age等参数-->
<!--    因为它返回的是int数值,所以resultType可以不用写-->
    <insert id="insert" parameterType="com.yy.Bean.Student">
        INSERT INTO student VALUES (#{id},#{name},#{age},#{gender},#{score})
    </insert>

//新增功能
    @Test
    public void insert() throws Exception{
        //加载核心配置文件
        InputStream is = Resources.getResourceAsStream("MyBatisConfig.xml");
        //获取SQLSession工厂对象
        SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(is);
        //通过工厂对象获取SqlSession对象,不添加参数为true
        // ,默认为false需要手动提交(但是我刚刚测试不需要。。)
        SqlSession sqlSession = sqlSessionFactory.openSession();
        //false也不需要添加事务,也能够将数据添加数据库。。
//        SqlSession sqlSession = sqlSessionFactory.openSession(false);
        //true也不需要添加事务,也能够将数据添加数据库。。
//        SqlSession sqlSession = sqlSessionFactory.openSession(true);
        //执行映射文件的sql语句,并接受结果
        Student stu = new Student(10,"破朝",18,"男",99);
        int insert = sqlSession.insert("StudentMapper.insert",stu);

        //增删改需要多一步步骤,那就是提交事务(刚测试如果不添加参数,也不提交事务,也是能够添加进入数据库里面的
//        sqlSession.commit();

        //处理结果
        System.out.println(insert);
        //释放资源
        sqlSession.close();
        is.close();
    }

修改功能

image-20210816175811363

<update id="update" parameterType="com.yy.Bean.Student">
    UPDATE student SET name=#{name},age=#{age},gender=#{gender},score=#{score} WHERE id = #{id}
</update>

//修改
    public void update() throws Exception{
        //加载核心配置文件
        InputStream is = Resources.getResourceAsStream("MyBatisConfig.xml");
        //获取SQLSession工厂对象
        SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(is);
        //通过工厂对象获取SqlSession对象,不添加参数为true
        // ,默认为false需要手动提交(但是我刚刚测试不需要。。)
        SqlSession sqlSession = sqlSessionFactory.openSession();
        //false也不需要添加事务,也能够将数据添加数据库。。
//        SqlSession sqlSession = sqlSessionFactory.openSession(false);
        //true也不需要添加事务,也能够将数据添加数据库。。
//        SqlSession sqlSession = sqlSessionFactory.openSession(true);
        //执行映射文件的sql语句,并接受结果
        Student stu = new Student(10,"破朝",98,"男",99);
        int insert = sqlSession.update("StudentMapper.update",stu);

        //增删改需要多一步步骤,那就是提交事务(刚测试如果不添加参数,也不提交事务,也是能够添加进入数据库里面的
//        sqlSession.commit();

        //处理结果
        System.out.println(insert);
        //释放资源
        sqlSession.close();
        is.close();
    }

删除功能

image-20210816195136343

    <delete id="delete" parameterType="java.lang.Integer">
        DELETE FROM student WHERE id = #{id}
    </delete>
    
       //删除功能
    @Test
    public void delete() throws Exception{
        InputStream is = Resources.getResourceAsStream("MybatisConfig.xml");
        SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(is);
        SqlSession sqlSession = sqlSessionFactory.openSession();
        int result = sqlSession.delete("StudentMapper.delete", 10);
        sqlSession.commit();
        System.out.println(result);
        sqlSession.close();
        is.close();

    }

MyBatis核心配置文件

image-20210816201827650

介绍

<?xml version="1.0" encoding="UTF-8"   ?><!--XML文档说明-->
<!--MyBatis的DTD约束:对标签的约束以及相应的提示的功能-->
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">
<!--configuration:核心根标签-->
<configuration>
<!-- environments   配置数据库环境 ,环境可以有多高 default属性指定使用的是哪一个  -->
    <environments default="mysql"><!--default:指定是下面的哪一个数据库 -->
<!--     environment 配置数控环境 id属性代表唯一标识  -->
        <environment id="mysql">
<!--           transactionManager代表事务的管理 type属性,采用JDBC默认的事务处理 -->
            <transactionManager type="JDBC"></transactionManager>
<!--            dataSource 数据源的信息 type属性代表连接池-->
            <dataSource type="POOLED">
<!--             property 获取数据库连接的信息   -->
                <property name="driver" value="com.mysql.jdbc.Driver"/>
                <property name="url" value="jdbc:mysql://127.0.0.1:3306/db0809pm"/>
                <property name="username" value="root"/>
                <property name="password" value="2184021338"/>
            </dataSource>
        </environment>
    </environments>
<!--   mappers 代表引入映射配置文件 -->
    <mappers>
<!--        引入指定的映射配置文件  resource 属性指定映射配置文件的名称(路径)-->
        <mapper resource="StudentMapper.xml"/>
    </mappers>
</configuration>

数据库连接配置文件的引入

properties
driver=com.mysql.jdbc.Driver
url=jdbc:mysql://127.0.0.1:3306/db0809pm
username=root
password=2184021338
<?xml version="1.0" encoding="UTF-8"   ?><!--XML文档说明-->
<!--MyBatis的DTD约束:对标签的约束以及相应的提示的功能-->
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">
<!--configuration:核心根标签-->
<configuration>

    <!--    引入数据库连接的配置文件-->
    <properties resource="jdbc.properties"/>

<!-- environments   配置数据库环境 ,环境可以有多高 default属性指定使用的是哪一个  -->
    <environments default="mysql"><!--default:指定是下面的哪一个数据库 -->
<!--     environment 配置数控环境 id属性代表唯一标识  -->
        <environment id="mysql">
<!--           transactionManager代表事务的管理 type属性,采用JDBC默认的事务处理 -->
            <transactionManager type="JDBC"></transactionManager>
<!--            dataSource 数据源的信息 type属性代表连接池-->
            <dataSource type="POOLED">
<!--             property 获取数据库连接的信息   -->
                <property name="driver" value="${driver}"/>
                <property name="url" value="${url}"/>
                <property name="username" value="${username}"/>
                <property name="password" value="${password}"/>
            </dataSource>
        </environment>
    </environments>
<!--   mappers 代表引入映射配置文件 -->
    <mappers>
<!--        引入指定的映射配置文件  resource 属性指定映射配置文件的名称(路径)-->
        <mapper resource="StudentMapper.xml"/>
    </mappers>
</configuration>

image-20210816200802079

起别名

image-20210816201038481
image-20210816201407920

<!-MybatisConfig.xml  -->
<?xml version="1.0" encoding="UTF-8"   ?><!--XML文档说明-->
<!--MyBatis的DTD约束:对标签的约束以及相应的提示的功能-->
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">
<!--configuration:核心根标签-->
<configuration>

    <!--    引入数据库连接的配置文件-->
    <properties resource="jdbc.properties"/>

<!--    起别名-->
    <typeAliases>
        <typeAlias type="com.yy.Bean.Student" alias="student"/>
<!--        <package name="com.yy.Bean"/>-->
    </typeAliases>
 ......
</configuration>
<?xml version="1.0" encoding="UTF-8" ?>

<!--MyBatis的DTD约束-->
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!--
    mapper:核心根标签
    namespace属性:名称空间    要想执行里面的sql语句必须
                            要借助与名称空间配合上id才能找到这条sql语句
-->
<mapper namespace="StudentMapper">
<!--
    select:查询功能的标签
    id属性:唯一标识,与名称空间配合使用
    resultType属性:指定结果映射对象类型
                    执行完下面的查询的sql语句会用一些数据,
                    而这些数据我们想要将他们封装到那个对象中,
                    就通过这个属性来进行指定
    parameterType属性:指定参数映射对象类型
                    如果有where这些条件的话,就通过parameterType来指定所需要的参数类型
-->
    <select id="selectAll" resultType="student">
        SELECT * FROM student
    </select>
    <select id="selectById" resultType="student" parameterType="int">
        SELECT * FROM student WHERE id = #{id}
    </select>
<!--    在parameterType里面传递过滤一个学生对象,如何从学生对象里面获取id、name、age等参数-->
<!--    因为它返回的是int数值,所以resultType可以不用写-->
    <insert id="insert" parameterType="student">
        INSERT INTO student VALUES (#{id},#{name},#{age},#{gender},#{score})
    </insert>

    <update id="update" parameterType="student">
        UPDATE student SET name=#{name},age=#{age},gender=#{gender},score=#{score} WHERE id = #{id}
    </update>

    <delete id="delete" parameterType="int">
        DELETE FROM student WHERE id = #{id}
    </delete>
</mapper>

MyBatis传统方式实现Dao层

package com.yy.mapper.Impl;

import com.yy.Bean.Student;
import com.yy.mapper.StudentMapper;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;

/**
 * @author Marston
 * @date 2021/8/16
 */
public class StudentMapperImpl implements StudentMapper {
    @Override
    public List<Student> selectAll() {
        InputStream is = null;
        SqlSession sqlSession = null;
        List<Student> list = null;
        try{
            //加载核心配置文件
            is = Resources.getResourceAsStream("MyBatisConfig.xml");
            //获取SqlSession工厂对象
            SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(is);
            //通过工厂对象,获取SqlSession对象
            sqlSession = sqlSessionFactory.openSession(true);
            //执行映射配置文件中的sql语句,并接收结果
            list = sqlSession.selectList("StudentMapper.selectAll");
        }catch (Exception e){
            e.printStackTrace();
        }finally {
            //释放资源
            if (sqlSession != null){
                sqlSession.close();
            }
            if (is != null){
                try {
                    is.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
        //返回结果
        return list;
    }

    @Override
    public Student selectById(Integer id) {
        InputStream is = null;
        SqlSession sqlSession = null;
        Student stu = null;
        try{
            //加载核心配置文件
            is = Resources.getResourceAsStream("MyBatisConfig.xml");
            //获取SqlSession工厂对象
            SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(is);
            //通过工厂对象,获取SqlSession对象
            sqlSession = sqlSessionFactory.openSession(true);
            //执行映射配置文件中的sql语句,并接收结果
            stu = sqlSession.selectOne("StudentMapper.selectById",id);
        }catch (Exception e){
            e.printStackTrace();
        }finally {
            //释放资源
            if (sqlSession != null){
                sqlSession.close();
            }
            if (is != null){
                try {
                    is.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
        //返回结果
        return stu;
    }

    @Override
    public Integer insert(Student stu) {
        InputStream is = null;
        SqlSession sqlSession = null;
        Integer result = null;
        try{
            //加载核心配置文件
            is = Resources.getResourceAsStream("MyBatisConfig.xml");
            //获取SqlSession工厂对象
            SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(is);
            //通过工厂对象,获取SqlSession对象
            sqlSession = sqlSessionFactory.openSession(true);
            //执行映射配置文件中的sql语句,并接收结果
            result = sqlSession.insert("StudentMapper.insert",stu);
        }catch (Exception e){
            e.printStackTrace();
        }finally {
            //释放资源
            if (sqlSession != null){
                sqlSession.close();
            }
            if (is != null){
                try {
                    is.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
        //返回结果
        return result;
    }

    @Override
    public Integer update(Student stu) {
        InputStream is = null;
        SqlSession sqlSession = null;
        Integer result = null;
        try{
            //加载核心配置文件
            is = Resources.getResourceAsStream("MyBatisConfig.xml");
            //获取SqlSession工厂对象
            SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(is);
            //通过工厂对象,获取SqlSession对象
            sqlSession = sqlSessionFactory.openSession(true);
            //执行映射配置文件中的sql语句,并接收结果
            result = sqlSession.update("StudentMapper.update",stu);
        }catch (Exception e){
            e.printStackTrace();
        }finally {
            //释放资源
            if (sqlSession != null){
                sqlSession.close();
            }
            if (is != null){
                try {
                    is.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
        //返回结果
        return result;
    }

    @Override
    public Integer delete(Integer id) {
        InputStream is = null;
        SqlSession sqlSession = null;
        Integer result = null;
        try{
            //加载核心配置文件
            is = Resources.getResourceAsStream("MyBatisConfig.xml");
            //获取SqlSession工厂对象
            SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(is);
            //通过工厂对象,获取SqlSession对象
            sqlSession = sqlSessionFactory.openSession(true);
            //执行映射配置文件中的sql语句,并接收结果
            result = sqlSession.delete("StudentMapper.delete",id);
        }catch (Exception e){
            e.printStackTrace();
        }finally {
            //释放资源
            if (sqlSession != null){
                sqlSession.close();
            }
            if (is != null){
                try {
                    is.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
        //返回结果
        return result;
    }
}



package com.yy.Service.Impl;

import com.yy.Bean.Student;
import com.yy.Service.StudentService;
import com.yy.mapper.Impl.StudentMapperImpl;
import com.yy.mapper.StudentMapper;

import java.util.List;

/**
 * @author Marston
 * @date 2021/8/16
 */
public class StudentServiceImpl implements StudentService {
    //创建持久层对象
    private StudentMapper mapper = new StudentMapperImpl();

    @Override
    public List<Student> selectAll() {
        return mapper.selectAll();
    }

    @Override
    public Student selectById(Integer id) {
        return mapper.selectById(id);
    }

    @Override
    public Integer insert(Student stu) {
        return mapper.insert(stu);
    }

    @Override
    public Integer update(Student stu) {
        return mapper.update(stu);
    }

    @Override
    public Integer delete(Integer id) {
        return mapper.delete(id);
    }
}

package com.yy.controller;

import com.yy.Bean.Student;
import com.yy.Service.Impl.StudentServiceImpl;
import com.yy.Service.StudentService;
import org.junit.Test;
import org.w3c.dom.ls.LSOutput;

import java.util.List;

/**
 * @author Marston
 * @date 2021/8/16
 */
public class StudentController {
    //创建业务层对象
    private StudentService service = new StudentServiceImpl();

    //查询全部功能测试
    @Test
    public void selectAll(){
        List<Student> students = service.selectAll();
        for(Student stu : students){
            System.out.println(stu);
        }
    }

    @Test
    public void selectById(){
        Student stu = service.selectById(3);
        System.out.println(stu);
    }
    @Test
    public void insert(){
        Student stu = new Student(10,"破朝",18,"男",99);
        Integer result = service.insert(stu);
        System.out.println(result);
    }
    @Test
    public void update(){
        Student stu = new Student(10,"破朝",88,"男",99);
        Integer result = service.update(stu);
        System.out.println(result);
    }
    @Test
    public void delete(){
        Integer result = service.delete(10);
        System.out.println(result);
    }



}

image-20210816205122273

LOG4J

在日常开发过程中,排查问题时难免需要输出MyBatis真正执行的SQL语询、参数、结果等信息,我们就可以借助LOG4J的功能来实现执行信息的输出。

image-20210816213103950

image-20210816213214497

image-20210816213038731

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

?abc!

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值