⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testspring.java

📁 springGather 在JAVA环境开发的电信运营支持系统
💻 JAVA
字号:
package lianxi;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.InputStreamResource;
import java.io.*;
import org.com.gather.*;
import java.util.*;

public class TestSpring{
	private static Config config = null;

	public static void main(String[] args)throws Exception{
		TestSpring test = new TestSpring();
		config = test.init();
		Log log = (Log)config.getLog();
		Gather gather = config.getGather();
		Collection col = gather.getData();
		log.writeDebug("Hello Log4J");

		DB db = config.getDB();
		db.storeToDB(col);
	}

	public Config init(){
		Properties pro = new Properties();
		pro.setProperty("beanFactory.xml","D:/EXAMPLE/NetCTOSS/Gather/beanFactory.xml");
		config = new SpringConfig(pro);
		return config;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -