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

📄 aoptest.java

📁 同事写的JSF, Aop学习的好东西,请尊重别人的劳动成果,交流学习用
💻 JAVA
字号:
package com.ywq.aop;

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

public class AopTest
{

    public static void main(String[] args)
    {
        ApplicationContext ctx = new FileSystemXmlApplicationContext(
                "applicationContext.xml");
        MockBiz biz = (MockBiz) ctx.getBean("mockBiz");
        System.out.println("====================================");
        biz.beforeLogin();
        biz.afterLogout();
        biz.timeLast();

        try
        {
            biz.doWrong();
        }
        catch (Exception e)
        {
            // System.out.println(e.getMessage());
        }

    }
}

⌨️ 快捷键说明

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