mybatis中使用使用模块化sql

主要使用到mybatis中的标签

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

 

使用的标签如下:

<include refid="tempId"/>

OK

  

posted @ 2016-10-10 09:13  梦见舟  阅读(497)  评论(0编辑  收藏  举报