How do you set both port and thread pool using embedded jetty, v 9.1.0

后端 未结 4 2313
猫巷女王i
猫巷女王i 2021-02-20 00:09

I\'m using jetty 9.1.0, embedded, and would like to set both port and ThreadPool. I see a constructor for each, but don\'t see how to use one of those, and then any way to set t

4条回答
  •  爱一瞬间的悲伤
    2021-02-20 00:21

    You could go with XML configuration from /etc/jetty.xml file, which is well documented and also use beans with Spring configuration.

    There's no constructor that will take ThreadPool and port together.

提交回复
热议问题