Java tutorial
/** * Project: WatchReserverStatus * * File Created at 2013-5-11 * $Id$ * * Copyright 1999-2100 Alibaba.com Corporation Limited. * All rights reserved. * * This software is the confidential and proprietary information of * Alibaba Company. ("Confidential Information"). You shall not * disclose such Confidential Information and shall use it only in * accordance with the terms of the license agreement you entered into * with Alibaba.com. */ package com.mike.angry.main; import java.io.IOException; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; /** * TODO Comment of ShuduSolverRunner * * @author haiquan.guhq */ public class ShuduSolverRunner { private static ApplicationContext context; public static void main(String[] args) throws IOException { // ?Spring context = new ClassPathXmlApplicationContext("Spring.xml"); ShuduSolver shuduSolver = (ShuduSolver) context.getBean("shuduSolver"); String path = "src/main/resource/puzzles/easy/ai-1.txt"; // String path = "src/main/resource/puzzles/hard/h-1.txt"; shuduSolver.mainFlow(path); shuduSolver = (ShuduSolver) context.getBean("shuduSolver"); path = "src/main/resource/puzzles/easy/ai-2.txt"; shuduSolver.mainFlow(path); shuduSolver = (ShuduSolver) context.getBean("shuduSolver"); path = "src/main/resource/puzzles/easy/ai-3.txt"; shuduSolver.mainFlow(path); shuduSolver = (ShuduSolver) context.getBean("shuduSolver"); path = "src/main/resource/puzzles/easy/ai-4.txt"; shuduSolver.mainFlow(path); shuduSolver = (ShuduSolver) context.getBean("shuduSolver"); path = "src/main/resource/puzzles/easy/ai-5.txt"; shuduSolver.mainFlow(path); } }