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

📄 main.java

📁 spring aop 例子 spring aop 例子
💻 JAVA
字号:
package test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String file = "C:/workspace/TestIbatis/src/test/springconfig.xml";
		ApplicationContext ctx     
        = new FileSystemXmlApplicationContext(file);     
   
    //Instantiate an object     
    Bean x = (Bean) ctx.getBean("bean");     
   
    //Execute the public method of the bean (the test)     
    x.theMethod();   
	}

}

⌨️ 快捷键说明

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