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相关设置备忘

相关文章:

  • 2021-10-24
  • 2021-12-11
  • 2021-12-10
  • 2021-05-25
  • 2022-12-23
  • 2021-10-15
  • 2021-07-18
猜你喜欢
  • 2021-09-12
  • 2022-12-23
  • 2022-12-23
  • 2021-05-11
  • 2022-01-12
  • 2021-10-22
相关资源
相似解决方案