启动时加载 Velocity 字符串模板
I have a list of strings in the memory. I want to load all of them as velocity templates during the application startup. How do I do it ?
I know how to create template from a string from here: How to use String as Velocity Template?
But I want to know how to load all template strings in one shot
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
循环遍历字符串集合并将它们全部初始化——不确定您还在寻找什么。
Loop over the collection of strings and initialize them all--not sure what else you're looking for.