public class ServerFactory extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static com.jfinal.server.IServer |
getServer() |
static com.jfinal.server.IServer |
getServer(int port) |
static com.jfinal.server.IServer |
getServer(int port,
String context) |
static com.jfinal.server.IServer |
getServer(int port,
String context,
int scanIntervalSeconds) |
static com.jfinal.server.IServer |
getServer(String webAppDir,
int port,
String context) |
static com.jfinal.server.IServer |
getServer(String webAppDir,
int port,
String context,
int scanIntervalSeconds)
Return web server.
|
public static com.jfinal.server.IServer getServer(String webAppDir, int port, String context, int scanIntervalSeconds)
important: if scanIntervalSeconds < 1 then you will turn off the hot swap
webAppDir - the directory of the project web rootport - the portcontext - the contextscanIntervalSeconds - the scan interval secondspublic static com.jfinal.server.IServer getServer(String webAppDir, int port, String context)
public static com.jfinal.server.IServer getServer(int port,
String context,
int scanIntervalSeconds)
public static com.jfinal.server.IServer getServer(int port,
String context)
public static com.jfinal.server.IServer getServer(int port)
public static com.jfinal.server.IServer getServer()
Copyright © 2019. All rights reserved.