197得票1回答
Spring Security在Wildfly上:执行过滤器链时出现错误

我正在尝试将 Spring Security SAML 扩展 与 Spring Boot 集成。 关于这个问题,我已经开发了一个完整的示例应用程序。其源代码可以在 GitHub 上获取: spring-boot-saml-integration on GitHub 通过将其作为 Sp...

41得票2回答
如何配置Wildfly以提供静态内容(例如图像)?

我有一个运行在Wildfly 8.0.0 Final上的JavaEE应用程序。 该应用程序使用大量图像,我不想将它们存储在数据库中,而是写入硬盘。 如何配置Wildfly/Undertow以便在特定URL(http://localhost:8080/myapplication/images...

18得票3回答
Vert.x事件循环 - 它是如何实现异步的?

我正在尝试使用Vert.x,并且对基于事件循环而不是线程/连接模型的服务器还很陌生。public void start(Future<Void> fut) { vertx .createHttpServer() .requestHandler...

16得票4回答
如何在Handler中正确读取POST请求的请求体?

我现在使用的代码: Pooled<ByteBuffer> pooledByteBuffer = exchange.getConnection().getBufferPool().allocate(); ByteBuffer byteBuffer = pooledByt...

14得票5回答
如何在8080端口启动Keycloak 2.0?

默认情况下,Keycloak的端口是 8080。现在当我使用 ./bin/standalone.sh 启动keycloak时,它将在 9990 端口上启动。所以我猜现在keycloak的默认端口是9990。 但有趣的是,每当我像下面这样明确指定keycloak端口时: ./bin/stand...

14得票2回答
如何在Spring Boot中使用自定义记录器记录访问日志

在Spring Boot 1.3中,我们只能将访问日志记录到文件系统中。是否有办法实际使用自定义记录器(如log4j2)来记录访问日志? 我目前正在使用Undertow与Spring Boot,但检查了Spring Boot源代码后发现,Undertow记录器是使用DefaultAccess...

14得票2回答
Undertow属性的默认值

我们目前正在调整使用 undertow 的服务,但我们找不到以下属性的默认值:server.undertow.worker-threads server.undertow.io-threads 我们了解到 undertow 在设置线程时使用了 org.xnio.Options,但找不到任何默认值。

13得票3回答
Undertow如何实现非阻塞IO?

我正在使用Undertow创建一个简单的应用程序。public class App { public static void main(String[] args) { Undertow server = Undertow.builder().addListener(8...

11得票1回答
Undertow的路由模板格式

有没有有关Undertow路由模板格式的文档。我想设置像这样的处理程序:/ or /index.html -> Use handler 1 Anything else -> Use handler 2 我尝试过这个,但没有起作用: 我尝试过这个,但没有起作用:Handlers.ro...

10得票3回答
如何从HttpServerExchange获取请求正文?

我创建了一个Undertow服务器和一个处理程序来记录请求。 我有问题获取HttpServerExchange的请求体。 在LoggingHandler类中,我可以毫无问题地获取请求体。 但是在TestEndpoint中,请求体为空。 如果我删除在LoggingHandler中检索请求体的...