eclipse部署项目

第一:部署项目:写完之后,去servers里右键添加项目(从左面放到右面)

<Context docBase="ftyth_base" path="/ftbase" reloadable="false" source="org.eclipse.jst.jee.server:ftyth_base">
           <Resource auth="Container" driverClassName="oracle.jdbc.driver.OracleDriver" initialSize="5" maxActive="10" maxIdle="10" maxWait="10000" minIdle="3" name="wf" password="1" type="javax.sql.DataSource" url="jdbc:oracle:thin:@172.17.103.7:1522:orcl11 " username="ftyth0119"/>  
  </Context>

第二:这种写法,docBase后面跟着的是路径,不用在右键add and remove后添加项目了

<Context docBase="D:\WorkSpace\ftythmain\webroot"
     path="/UIServer" reloadable="false">
     <Resource auth="Container" driverClassName="oracle.jdbc.driver.OracleDriver"
      initialSize="5" maxActive="10" maxIdle="10" maxWait="10000"
      minIdle="3" name="wf" password="1" type="javax.sql.DataSource"
      url="jdbc:oracle:thin:@172.17.103.7:1522:orcl11" username="ftyth0105" />
    </Context>

你可能感兴趣的:(eclipse部署项目)