实现服务的配置与接口的增删改查

This commit is contained in:
peng
2021-10-27 20:02:55 +08:00
parent 136f8d62ac
commit 306664b3df
16 changed files with 686 additions and 41 deletions

View File

@@ -0,0 +1,21 @@
package com.dayrain.server;
import com.dayrain.entity.Server;
import com.dayrain.entity.ServerUrl;
public class ServerThread extends Thread {
private final Server server;
public ServerThread(Server server) {
super(server);
this.server = server;
}
public void stopServer() {
server.stop();
}
public void addContext(ServerUrl serverUrl) {
server.addContext(serverUrl);
}
}