开发者

get the war file name in jboss

开发者 https://www.devze.com 2023-01-19 09:40 出处:网络
How can I get the开发者_运维问答 deployed war file name inside jboss. For example, when I am inside a servlet and I want to know the which war file name that I am in.

How can I get the开发者_运维问答 deployed war file name inside jboss. For example, when I am inside a servlet and I want to know the which war file name that I am in.

Thanks,

Son Nguyen


String warName = new File(getServletContext().getRealPath("/")).getName();
0

精彩评论

暂无评论...
验证码 换一张
取 消