如何让Liberty Profile在启动时急切地加载应用程序

stu*_*tu2 3 websphere-liberty

Liberty Profile仅在服务器收到第一个请求时才加载我们部署的EAR和WAR.我们如何告诉它在服务器启动时急切地加载应用程序?

我们使用的是最新的8.5.5 WLP.

谢谢,

斯图

jbe*_*ark 7

通过将以下内容添加到server.xml,可以将WebContainer配置为在第一个请求之前完全初始化应用程序:

<webContainer deferServletLoad="false"/>
Run Code Online (Sandbox Code Playgroud)