Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人知道如何将 Wicket html 模板文件存储在数据库中吗?
例如:如果有 Wicket 面板(比如说“MyPanel”),它由两个文件组成:HTML 模板(标记文件“MyPanel.html”)和 Java 代码(“MyPanel.java”)。
现在我想将标记(“MyPanel.html”)文件存储在数据库中并从数据库中获取。
IResourceFinder当您像这样初始化应用程序时,您需要实现一个新的并添加它:
IResourceFinder
getResourceSettings().getResourceFinders().add(new DatabaseResourceFinder());