我想在Jetty 9中强制使用https。显然:
<Set name="confidentialPort">443</Set>
不再在docker工作9.我应该怎么做好?
这个资源说要添加到您的web.xml
<web-app> ... <security-constraint> <web-resource-collection> <web-resource-name>Everything in the webapp</web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint> </web-app>