IndexController.java
673 Bytes
package com.glsx.smart.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
/**
* @Title: IndexController.java
* @Description:访问服务demo
* @author think.wang
* @version V1.0
* @Company: Didihu.com.cn
* @Copyright Copyright (c) 2017
*/
@RestController
public class IndexController {
@ResponseBody
@RequestMapping(value = "/home", method = {RequestMethod.GET, RequestMethod.POST})
public String home(){
return "hello, welcome to home!";
}
}