且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

获取Java应用程序服务器名称和版本

更新时间:2023-10-17 21:10:46

我找到了一些代码来获取部署应用程序的服务器信息。

这段代码是用Servlet编写的,用于获取运行它的服务器信息..

I have find some code for getting server information of where you deploy your application.
This code is written in Servlet to get server info in which it is running..

String str1 = getServletContext()。getServerInfo();

通过这个,您将获得服务器名称和服务器的版本信息。

By this you will get the server name and the server's version info.

我认为它会帮助您..

I think it will some what help you..