①PeopleMapper.xml文件中的namespace得是对应接口com.demo.mapper.PeopleMapper,同时还要在mybatis.cfg.xml中配置<mapper resource = "maapers/PeopleMapper.xml/>
②在resource目录下,一层一层的建包(和对应接口一致)
com->demo->mapper->PeopleMapper.xml
同时要在mybatis.cfg.xml中配置<package name="com.demo.dao"/>