📄 controlflowdemo.java
字号:
package test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.
support.FileSystemXmlApplicationContext;
public class ControlFlowDemo {
public static void main(String[] args) {
ApplicationContext context =
new FileSystemXmlApplicationContext(
"beans-config.xml");
ControlFlowTest test = (ControlFlowTest) context.getBean("cfTest");
if(args.length > 0 && args[0].equals("work")) {
test.helloEveryone();
}
else {
System.out.println("做其他的事情...");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -