/**************************************************************************************** 
 Copyright © 2003-2012 hbasesoft Corporation. All rights reserved. Reproduction or       <br>
 transmission in whole or in part, in any form or by any means, electronic, mechanical <br>
 or otherwise, is prohibited without the prior written consent of the copyright owner. <br>
 ****************************************************************************************/
package com.hbasesoft.framework.cache.demo.controller;

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

import com.hbasesoft.framework.cache.demo.service.TestService;

/**
 * <Description> <br>
 * 
 * @author 王伟<br>
 * @version 1.0<br>
 * @taskId <br>
 * @CreateDate 2016年11月26日 <br>
 * @since V1.0<br>
 * @see com.hbasesoft.test.cache.controller <br>
 */
@Controller
public class TestController {

    /** testService */
    private TestService testService;

    /**
     * Description: <br>
     * 
     * @author 王伟<br>
     * @taskId <br>
     * @param name name
     * @return <br>
     */
    @RequestMapping(value = "/test")
    @ResponseBody
    public String say(final String name) {
        return testService.getTestContent(name);
    }

    /**
     * Description: <br>
     * 
     * @author 王伟<br>
     * @taskId <br>
     * @return <br>
     */
    public TestService getTestService() {
        return testService;
    }

    /**
     * Description: <br>
     * 
     * @author 王伟<br>
     * @taskId <br>
     * @param service <br>
     */
    public void setTestService(final TestService service) {
        this.testService = service;
    }

}
