企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
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); } } ​ }