本文介绍了如何创建动态模板字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有任何API使用Spring或java替换模板字符串以及值。
Is there is any API which replace template string along with values using Spring or java.
例如:
Dear %FIRST_NAME% %LAST_NAME%,
---- remaining text-----------
其中参数( FIRST_NAME
, LAST_NAME
)以地图
的形式。
where parameters (FIRST_NAME
, LAST_NAME
) in the form of Map
.
推荐答案
我最喜欢的模板引擎是
My favorite templating engine is Apache Velocity
与Spring整合得很好还有一篇介绍性文章
Integrates nicely with Spring as well, theres an introductory article here
这篇关于如何创建动态模板字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!