enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false",在生成xml文件时,应该有insert、insertSelective、selectByPrimaryKey、updateByPrimaryKeySelective、updateByPrimaryKey、deleteByPrimaryKey等方法,但是在生成的xml文件中只有insert、insertSelective,后来上网查了好多资料,发现很少描述这个问题的,看到其中有人说可能是jar版本不对,我用的是jdk1.8.0_73,mysql-connector-java-6.0.6..jar,mysql 5.7,后来改成mysql-connector-java-5.1.37.jar之后发现就可以了。
相关文章: