How can I in a jsp page get maven project version number?

后端 未结 11 2204
天命终不由人
天命终不由人 2020-12-14 16:07

I am working on a java web application, managed by maven2. From time to time, we did some changes, and want to do new releases, of course with new version number. In the hom

11条回答
  •  南方客
    南方客 (楼主)
    2020-12-14 16:55

    It's maybe stupid but I'd use a .properties file like in this example instead of filtering directly the JSP.

提交回复
热议问题