使用Mybatis自带的插件来查询限制的长度 1.查官网(Supplied plugins) 2.在generatorConfig.xml插入插件 <plugin type="org.mybatis.generator.plugins.RowBoundsPlugin"></plugin>