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

📄 main.java

📁 aop在项目中的应用
💻 JAVA
字号:
package simon.tools.aop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import java.net.*;

public class Main {

  public static void main(String[] args) {
    Main main = new Main();
    String path = "/classes/simon/tools/aop/springconfig.xml";
    //Read the configuration file
    ApplicationContext ctx = new FileSystemXmlApplicationContext(path);
    //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 + -