com.sishuok.web.controller.pipe.PipeController.java Source code

Java tutorial

Introduction

Here is the source code for com.sishuok.web.controller.pipe.PipeController.java

Source

/**
 * Copyright (c) 2005-2012 https://github.com/zhangkaitao
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package com.sishuok.web.controller.pipe;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.io.IOException;
import java.util.concurrent.Callable;

/**
 *
 * Pipe???
 *  1?
 *  2?  
 *
 *  ?15?
 *
 * <p>User: Zhang Kaitao
 * <p>Date: 13-7-28 ?11:07
 * <p>Version: 1.0
 */
@Controller
public class PipeController {

    @RequestMapping("/pipe")
    public Callable<String> pipe() throws IOException, InterruptedException {
        return new Callable<String>() {
            @Override
            public String call() throws Exception {
                return "pipe/index";
            }
        };

    }
}