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

📄 testapplicationcontextfactory.java

📁 struts+spring+hibernate自创框架
💻 JAVA
字号:
package com.pegasus.framework.test;

import junit.framework.TestCase;

import org.springframework.context.ApplicationContext;

import com.pegasus.framework.web.ApplicationContextFactory;

public class TestApplicationContextFactory extends TestCase {
	private org.apache.log4j.Logger logger = org.apache.log4j.LogManager.getLogger(TestApplicationContextFactory.class);

	public void testInit() {
		System.out.println(TestApplicationContextFactory.class.getClassLoader().getResource(""));
		ApplicationContext context = ApplicationContextFactory.getApplicationContext();
		assertNotNull(context);
	}

	public static void main(String[] args) {
		
		TestApplicationContextFactory test = new TestApplicationContextFactory();
		test.testInit();
		System.out.println("finish");
	}
}

⌨️ 快捷键说明

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