javapub.rodert 的包,然后在该包中创建一个名为 PersonDao 的接口,并在接口中添加一个 add() 方法 package javapub.rodert; /** * @author wangshiyu PersonDaoImpl 在 javapub.rodert 包下创建 PersonDao 的实现类 PersonDaoImpl package javapub.rodert; /** * @author wangshiyu org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; /** * @author wangshiyu