1. 设置项目发布路径,比如项目访问地址不要项目名
    web项目–右键–properties
    找到Web Project Settings
    将Context root中的内容换成 /
    这样发布项目的时候访问不需要再加上项目名
    eclipse中不用输入项目名称就可以直接访问项目
  2. 设置运行环境jdk版本,web项目–右键–run as–run configurations
    eclipse配置tomcat相关设置备忘
  3. web项目–右键–properties–project facets
    设置项目运行配置
    eclipse配置tomcat相关设置备忘
    project facets参考

  4. 设置tomcat运行依赖的jre版本
    eclipse–windows–preferences
    eclipse配置tomcat相关设置备忘

相关文章: