📄 pictureserviceexecuter.java
字号:
package com.wrox.beginspring.pix.jms.service;
import java.io.IOException;
import java.util.Scanner;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class PictureServiceExecuter {
private static final String[] configLocations = new String[] { "jms-service.xml" };
public static void main(String[] args) throws IOException {
new ClassPathXmlApplicationContext(configLocations);
System.out.println("Context loaded : JMS Service Started");
System.out.println("Type Exit to end JMS Service");
Scanner keyboard;
String text = "";
keyboard = new Scanner(System.in);
while (!text.equalsIgnoreCase("Exit")) {
text = keyboard.nextLine();
}
System.exit(0);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -