多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
public class SpringRedisTest { public static void main(String\[\] args) { ApplicationContext context=new ClassPathXmlApplicationContext("classpath:applicationContext.xml"); MenuService menuService=context.getBean(MenuService.class); //接下来的操作就和java里面一样的了 List<Menu> list = menuService.queryAllMenuForList(); for (Menu menu : list) { System.out.println(menu); } } ​ }