- 授权协议: GPL
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: https://github.com/bluejoe2008/spring-beans-writer
- 软件文档: https://github.com/bluejoe2008/spring-beans-writer/blob/master/README.md
- 官方下载: https://github.com/bluejoe2008/spring-beans-writer
软件介绍
spring-beans-writer用来生成spring IOC的配置文件,可以自动写入简单类型以及List、Map等复杂类型的值。
示例如下:
SpringBeans beans = new SpringBeans(); beans.addBean(_database, "database"); beans.addBeans(_persons); SpringBeansWriter sbw = new SpringBeansWriter(); List<FilteredOutput> outputs = new ArrayList<FilteredOutput>(); outputs.add(new SimpleFilteredOutput(new File("spring_beans.xml"))); sbw.write(beans, outputs);