SOFARPC 要求自定义线程池的类型必须是 。 如果是采用 Annotation 的方式发布服务,可以通过设置 的 userThreadPool 属性来设置自定义线程池的 Bean: 如果是在非 Spring 环境下使用 API 的方式,可以通过如下的方式来设置自定义线程池: