获取当前路径

public String findByAdvertisementSpaceList(@RequestBody AdvertisementDtoIn advertisementDtoIn,HttpServletRequest request){
String contextPath = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+
request.getServerPort()+contextPath+"/";
logger.debug(basePath);// http://localhost:8081
}
posted @ 2016-05-25 17:12  #料  阅读(135)  评论(0编辑  收藏  举报