大家也许知道在eclipse上通过新建server来部署项目到tomcat,并且通过server来管理项目的启动配置。server会自动创建启动该项目的xml

如:

<Context docBase="ProjectName" path="/" reloadable="true" source="org.eclipse.jst.jee.server:ProjectName"/>

 

但是用Myeclispe的时候发现无法通过这种方式进行上述操作。

其实我们可以通过更改tomcat下的server.xml文件进行配置。

<Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
  <Context path="" docBase="ProjectName" debug="0" reloadable="true"/>
</Host>

 

server.xml 路径:\conf

相关文章:

  • 2021-08-01
  • 2021-08-23
  • 2021-04-24
  • 2021-06-28
  • 2021-07-16
猜你喜欢
  • 2022-02-17
  • 2021-08-01
  • 2022-12-23
  • 2021-05-24
  • 2021-07-10
  • 2021-07-03
相关资源
相似解决方案