JUnit4 单元测试报空指针异常: 解决方法: 首先右键【Hibernate02】-【Properties】-【Java Build Path】 先把其remove掉: 再add library -【Finish】-【OK】 这样就可以解决啦!!!!!!