public void generateSingleLicense() throws Exception { System.out.println(getRequest().getRequestURL()); System.out.println(getRequest().getServerPort()); }
输出结果为
http://10.10.3.6:8500/license/generateSingleLicense 8500