WebContext.getServerPort

This commit is contained in:
shimingxy
2024-11-15 08:55:19 +08:00
parent 176355d7a6
commit 05e089358a
4 changed files with 7 additions and 3 deletions

View File

@@ -150,6 +150,10 @@ public final class WebContext {
public static String getProperty(String key) {
return properties.getProperty(key);
}
public static String getServerPort() {
return getProperty("server.port");
}
// below method is common HttpServlet method
/**