UserAgentUtils获取浏览器信息
eu.bitwalker UserAgentUtils 1.20
import eu.bitwalker.useragentutils.Browser; import eu.bitwalker.useragentutils.UserAgent; import eu.bitwalker.useragentutils.Version; //获取浏览器信息 Browser browser = UserAgent.parseUserAgentString(request.getHeader("User-Agent")).getBrowser(); //获取浏览器版本号 Version version = browser.getVersion(request.getHeader("User-Agent")); String info = browser.getName() + "/" + version.getVersion(); System.out.println(info);
网页标题:UserAgentUtils获取浏览器信息
新闻来源:http://ybzwz.com/article/pjiidp.html