解决方案 »

  1.   

    cache的值一般保存在rptconfig文件里
      

  2.   

    PersonMapper com.hello.ssm.dao.impl.PersonDaoImp 没注入
      

  3.   

    你先采用JAVA单元测试看看,看能不能获取Mapper
      

  4.   

     你确定你所有的bean包都在com.hello.ssm下面
      

  5.   

    还有一个PersonMapper接口
    @Repository("personMapper")
    public interface PersonMapper {
    public int add(Person p);
    public int delete(int id);
    public int update(Person p);
    public Person findOne(int id);
    public List<Person> findAll();
    }
    应该在实现类上写
    @Repository("personMapper")