// 初始化默认根用户 if (dao.count(User.class) == 0) { UserService us = ioc.get(UserService.class); us.add("admin", "123456"); }