pictureserviceexecuter.java

来自「Beginning Spring 2 源代码」· Java 代码 · 共 32 行

JAVA
32
字号
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 + =
减小字号Ctrl + -
显示快捷键?