202109-10 通过weblogic API解析如何获取weblogic中服务的IP和端口操作 我们的服务是部署在weblogic上的,最近遇到一个需求,需要在代码中获取weblogic部署当前服务的IP地址和端口。后来搜到一段代码,亲测有效:publicstaticStringgetIpAndPort(){try{InitialContextinitialContext=newInitialContext();MBeanServertMBeanServer;MBeanServerplatformMBeanServer=ManagementFactory.getPlatformMBeanServer();tMBeanServer=(MBeanServer)initialContext.lookup("jav... 继续阅读 >
202010-10 Tomcat和Weblogic部署纯html文件过程解析 1、首先纯html文件,得有一个入口index.html2、Tomcat是不需要指定web.xml的,因为即使你的文件里没有web.xml,也会读取conf目录下的web.xml,在这个文件里边指定了index.html的入口Tomcat的话只要将原文件部署到webapps\目录下,或者在\conf\Catalina\localhost目录下新建xml文件,指向html页面<?xmlversion='1.0'encoding='utf-8'?><ContextdocBase="C:\Users\jiashubing\Desktop\dist"reloadable="false"... 继续阅读 >