【发布时间】:2021-10-04 16:52:01
【问题描述】:
我想从我的 Helidon MP 服务器提供静态内容。但我只收到No handler found for path: /static/index.html。
我在src/main/resources/META-INF/microprofile-config.properties 中有configured the static resources:
server.static.classpath.location=/static
我 start my server 与:
Server.builder().config(Config.create()).build().start();
我想我必须添加一个 JaxRsApplication?但是我该怎么做呢?
我发现当我使用io.helidon.microprofile.cdi.Main 时它确实有效,但我想手动创建服务器。
【问题讨论】: