問題:
There is no getter for property named '__frch_criterion_1' in 'class com.××.××.TbContentExample'。可是我並沒有定義這個變量。
代碼如下:

//執行查詢 TbContentExample example = new TbContentExample(); Criteria criteria = example.createCriteria(); criteria.andCategoryIdEqualTo(((long)categoryId)); //分頁處理 PageHelper.startPage(1, 10); List<TbContent> list = contentMapper.selectByExampleWithBLOBs(example);
分析:
把條件注釋掉或者分頁注釋掉正常使用。個人猜測可能是分頁插件和逆向工程不兼容。
解決:
其實是還沒解決,最后自己寫了mapper和xml查詢。記錄一下,md找了一下午原因