2020-10-10から1日間の記事一覧
Mybatisでincludeした際のpropertyの話。 interface.java selectUserTable(@Param("id") String id, @Param("pw") String pw); mapper.xml <select id="selectUserTable"> <include refid="includeSql"> <property name="tblname" value="user_table"/> </include></select><sql id="includeSql"> select * from ${ tblname } -- ←半…</sql>