📄 introductionmain.java
字号:
package cn.hxex.springcore.introduction;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class IntroductionMain {
public static void main(String[] args) {
ClassPathXmlApplicationContext factory = new ClassPathXmlApplicationContext( "cn/hxex/springcore/introduction/IntroductionBeans.xml" );
IntroductionBean introductionBean = (IntroductionBean)factory.getBean( "introductionBean" );
introductionBean.serviceMethod();
// UsageTracked usageTracked = (UsageTracked)factory.getBean( "introductionBean" );
// usageTracked.display();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -