标签:context view public bsp name new 生成 ++ names
@Autowired public ApplicationContext context; @Bean public ViewResolver freeMarkerViewResolver(){ String[] arr=context.getBeanDefinitionNames(); for(int i=0;i<arr.length;i++){ System.out.println(arr[i]); } FreeMarkerViewResolver view=new FreeMarkerViewResolver(); view.setOrder(1); return view; }
Spring boot 梳理 - 显示Springboot默认自动生成的bean
标签:context view public bsp name new 生成 ++ names
原文地址:https://www.cnblogs.com/jiangtao1218/p/10216880.html