有没有基于java的模板引擎解析动态信息,如Apache虚拟机确实为一代? [英] Is there any java based template engine to parse dynamic messages like apache vm does for generation?

查看:169
本文介绍了有没有基于java的模板引擎解析动态信息,如Apache虚拟机确实为一代?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我在其中需要从一些固定的结构,消息中提取一些信息/数据的Java应用程序正在工作。例如;

Hi i am working in an java application which needs to extract some info/data from a some fixed structure messages. For example;

The price of mango is Rs.10

该消息将结构法始终的格式为:

The message structre will be always in the format:

The price of $item is Rs. $amt

时有框架,如果像指定了结构产生这样的消息可以读/解析项目和AMT任何Java apache的速度映射用于..

Is there is framework any java which can read/parse the item and amt if the structure is specified like For generation of such messages apache velocity mapping is used..

信息+ MsgStrucrte模板= AMT和项目。

Message+MsgStrucrte in template = amt and item.

推荐答案

在事实上,是的,有一个。我在2007年codeD使用相同的语法解析器(和基于)Apache的速度,回来了。

In fact, yes, there is one. I coded a parser using the same syntax (and based upon) Apache Velocity, back in 2007.

我上传到GitHub上,codeNAME 寂静

I uploaded it to github, codename stillness.

该文档是简约,但在解说例子应该是足够的。

The documentation is minimalist, but examples in the README should be enough.

这篇关于有没有基于java的模板引擎解析动态信息,如Apache虚拟机确实为一代?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆