如:localhost:8080 或者192.168.1.121
HttpServletRequest request = ServletActionContext.getRequest();
String realpath =request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort();
realpath =localhost:8080
读取配置文件common.properties
ResourceBundle bundle = ResourceBundle.getBundle("common");
String realpath = bundle.getString("STNBIMG");