目前,我在 wicket 应用程序中指定共享图像目录的路径,如下所示:
getSharedResources().add("images", new FolderContentResource(new File(this.getServletContext().getResource("/images").getFile())));
以下路径也不起作用:
getSharedResources().add("images", new FolderContentResource(new File("/opt/tomcat/webapps/test/images")));
将应用程序部署到 Jelastic/Tomcat 时,无法检索图像。如何解决这个问题?