props, autowired
map props bean 010 011 018 main GenericXmlApplicationContext ctx= new GenericXmlApplicationContext("classpath:com/spring/stu.xml"); Student stu= ctx.getBean("student", Student.class); Map map= stu.getMapCat(); Set keys= map.keySet(); for (String key : keys) { System.out.println(map.get(key)); } System.out.println("============="); Properties props= stu.getPhones(); Set xxx= props.stringPropertyN..
2024.02.07