Authored by qinchao

bigdata监控系统url改为由配置文件获取

package com.monitor.other.bigdata.ctrl;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
/**
* Created by craig.qin
*/
@Controller
@RequestMapping("/bigdata")
public class BigdataCtrl {
@Value("${bigdata.web.url}")
private String accessUrl;
/**
* 获取访问url
* @return
*/
@RequestMapping("/getAccessUrl")
@ResponseBody
public String getAccessUrl() {
return accessUrl;
}
}
... ...
bigdata.web.url=http://dashboardui.yohops.com
... ...
bigdata.web.url=http://dashboardui.yohops.com
... ...
bigdata.web.url=http://172.16.6.132:7777
... ...