IndexController.java
819 Bytes
package com.glsx.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.glsx.config.SystemProperty;
import org.springframework.web.bind.annotation.RestController;
/**
* @Title: IndexController.java
* @Description:
* @author deployer name
* @version V1.0
* @Company: Didihu.com.cn
* @Copyright Copyright (c) 2017
*/
@RestController
@RequestMapping("index")
public class IndexController {
@Autowired
private SystemProperty systemProperty;
@ResponseBody
@RequestMapping("home")
public String home(){
return "hello, welcome to home!";
}
@RequestMapping("fz")
public String index(){
return systemProperty.getProperty("system.name");
}
}