Weblogic里如何修改Context-Root

1.建目录F:\bi\webapp\transmit\WEB-INF,新建web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
       version="2.5">

   <mime-mapping>
      <extension>xsd</extension>
      <mime-type>text/xml</mime-type>
   </mime-mapping>

   <mime-mapping>
      <extension>xml</extension>
      <mime-type>text/xml</mime-type>
   </mime-mapping>

   <mime-mapping>
      <extension>js</extension>
      <mime-type>text/javascript</mime-type>
   </mime-mapping>

   <mime-mapping>
      <extension>css</extension>
      <mime-type>text/css</mime-type>
   </mime-mapping>

   <mime-mapping>
      <extension>png</extension>
      <mime-type>image/png</mime-type>
   </mime-mapping>

   <mime-mapping>
      <extension>swf</extension>
      <mime-type>application/x-shockwave-flash</mime-type>
   </mime-mapping>

</web-app>

2.新建weblogic.xml,然后加入下面的内容:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE weblogic-web-app
  PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN"
  "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">

<weblogic-web-app>
     <context-root>/WebRoot</context-root>
</weblogic-web-app>

修改context-root的内容即可

 

你可能感兴趣的:(Web,weblogic,application,BI,webapp,encoding)