描述:在ssm项目中直接在类中注入dao private static Dao dao = SpringContextHolder.getBean(Dao.class); 转载于:https://www.cnblogs.com/zhouheblog/p/11008090.html