java~用域名回显照片


/**
* 域名回显照片
*/
@RequestMapping(value = "/dpPhoto")
public String dpPhoto(HttpServletRequest request,
HttpServletResponse response) throws Exception {
String activity_id = request.getParameter("activity_id");
if (activity_id.equals("") || activity_id == null) {
return null;
} else {
List<MEETING_register_activeityData> data = activeityService.echo(activity_id);
String path = data.get(0).getMetting_discipline();
log.info("纪律修改域名");
String code_path = path.replaceAll("/u02/webapps", "http://wcmuat.yundasys.com:8086");         //将数据库的u02数据改为相对应域名
if (code_path.equals("") || code_path == null) {
return null;
} else {
return code_path;
}
}
}

原文地址:https://www.cnblogs.com/Darkqueen/p/10449765.html