简体   繁体   English

Velocity String Template启动时加载

[英]Velocity String Template Loading at startup

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 但我想知道如何一次性加载所有模板字符串

循环遍历字符串集合并将它们全部初始化 - 不确定您还在寻找什么。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM