在 Spring Tool Suite (STS) 上禁用运行时环境 [英] Runtime Environment is disable on Spring Tool Suite (STS)

查看:68
本文介绍了在 Spring Tool Suite (STS) 上禁用运行时环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Spring Tool Suite (3.3.0).

I am using Spring Tool Suite (3.3.0).

我正在尝试为动态 Web 项目配置 Apache Tomcat (6.0.45) 6.Server 运行时环境.

I am trying to Configure the Apache Tomcat (6.0.45) 6.Server Runtime Environment for a Dynamic Web Project.

创建项目并将 Tomcat 运行时添加到 STS 后,我单击属性"并选择项目构面".

After I created the project, and added the Tomcat Runtime to the STS, I clicked on "Properties" and selected "Project Facets".

然而,Apache Tomcat 的选项是禁用的.我无法在网络上找到与此相关的任何内容.

However the option for Apache Tomcat is disable. I have not be able to find anything in the web related to this.

如何在 Spring Tool Suite 上启用 Apache Tomcat 运行时?

How can I enable Apache Tomcat runtime on Spring Tool Suite?

属性->项目方面

推荐答案

据我所知,Dynamic Web Module 3.0"不适用于Apache 6".您需要升级到Apache 8"或使用Dynamic Web Module 2.5"

From what I found out "Dynamic Web Module 3.0" will not work with "Apache 6". You either need to Upgrade to "Apache 8" or use "Dynamic Web Module 2.5"

如果您的项目已经是 3.0(像这个),那么您需要手动编辑项目构面(STS 不允许您从 3.0 更改为 2.5).

If your project is already 3.0 (like this one), then you need to edit manually the project facet (STS will not allow you to change from 3.0 to 2.5).

要手动进行更改,请按照以下流程操作:

To make the change manually follow the process below:

  1. 转到您的项目位置
  2. 展开 .settings 文件夹
  3. 编辑 org.eclipse.wst.common.project.facet.core.xml
  4. 在这一行中将版本更改为 2.5
  5. 转到 STS
  6. 右键单击您的项目"
  7. 刷新 (F5)
  8. 点击菜单中的项目"
  9. 选择清洁
  10. 现在再次转到Project Facets"屏幕,您应该能够选择 Apache 6 运行时环境

这篇关于在 Spring Tool Suite (STS) 上禁用运行时环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆