Service层
实现类:
mybatis配置文件
<select id="selectTableByName" parameterType="java.util.Map" resultType="String">
show TABLES like #{tablename}
</select>
-----------------------------------------运行结果--------------------------------------
如果表不存在,则返回空。