jetty作为嵌入式的服务器时报错,该怎么处理
答案:1 悬赏:30 手机版
解决时间 2021-01-22 09:02
- 提问者网友:别再叽里呱啦
- 2021-01-21 14:33
jetty作为嵌入式的服务器时报错,该怎么处理
最佳答案
- 五星知识达人网友:玩世
- 2021-01-21 15:14
果:
*/
public class testjetty {
public static void main(string[] args) {
server server = new server();
queuedthreadpool threadpool = new queuedthreadpool(200);
server.setthreadpool(threadpool);
connector connector = new selectchannelconnector();
connector.setport(8080);
server.addconnector(connector);
webappcontext webapp = new webappcontext();
webapp.setcontextpath("/");
webapp.setwar("e:/jetty/jetty-6.1.26/jetty-6.1.26/webapps/testjetty.war");
webapp.setclassloader(thread.currentthread().getcontextclassloader());
server.sethandler(webapp);
try {
server.start();
server.join();
*/
public class testjetty {
public static void main(string[] args) {
server server = new server();
queuedthreadpool threadpool = new queuedthreadpool(200);
server.setthreadpool(threadpool);
connector connector = new selectchannelconnector();
connector.setport(8080);
server.addconnector(connector);
webappcontext webapp = new webappcontext();
webapp.setcontextpath("/");
webapp.setwar("e:/jetty/jetty-6.1.26/jetty-6.1.26/webapps/testjetty.war");
webapp.setclassloader(thread.currentthread().getcontextclassloader());
server.sethandler(webapp);
try {
server.start();
server.join();
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯