How to create dynamic Template String

前端 未结 4 1664
北荒
北荒 2020-12-22 14:06

Is there is any API which replace template string along with values using Spring or java.

For example:

Dear %FIRST_NAME% %LAST_NAME%,
---- remaining          


        
4条回答
  •  情书的邮戳
    2020-12-22 14:31

    Check StringTemplate, http://www.stringtemplate.org/ and article here to get feel of it, http://www.codecapers.com/post/Generating-Structured-Text-with-StringTemplate.aspx

提交回复
热议问题