第一種:在應用WEB-INF文件夾下創建weblogic.xml文件,內容如下,其中<context-root>/abc</context-root>為路徑上的應用名 <?xml version="1.0" encoding="ISO-8859-1"?> <weblogic-web-app> <context-root>/abc</context-root> </weblogic-web-app>
第二種:就是修改war包的名稱,如原abc.war,默認訪問名稱就是/abc,如果改為cba.war,那訪問名稱也會變成/cba
