mybatis中使用使用模块化sql

主要使用到mybatis中的标签

<sql id="tempId">
  select * from student
<sql>

使用的标签如下:

<include refid="tempId"/>

OK

  

原文地址:https://www.cnblogs.com/mengjianzhou/p/5944556.html