使用 Spring Tool Suite 部署 Spring Web 应用程序 [英] Deploying spring web apps using Spring Tool Suite

查看:49
本文介绍了使用 Spring Tool Suite 部署 Spring Web 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Java Web 框架的新手,我用谷歌搜索发现 spring 是最受欢迎的框架之一.我尝试安装工具并搜索了在我的 mac 上运行 spring 框架的教程.

I'm new to Java web framework, I googled to find that spring is one of the most popular framework. I tried to install tools and searched a tutorial to run spring framework on my mac.

本网站之后,我可以在我的 mac 上安装 Tomcat.我正在为 Tomcat 使用 :8080 端口.

Following this site, I could install Tomcat on my mac. I'm using :8080 port for Tomcat.

这个站点,我可以安装 Spring Tool Suite.

From this site, I could install Spring Tool Suite.

找到了有关使用 Spring Tool Suite 的教程.按照这个程序,我可以构建 manolitomvc 应用程序.

I found a tutorial on using Spring Tool Suite. Following the procedure, I could build manolitomvc app.

最后,我想通过 http://localhost:8080/manolitomvc 访问 Web 应用程序.

Finally, I'd like to access the web app at http://localhost:8080/manolitomvc.

我点击了绿色箭头以查看错误消息.

I clicked the green arrow to see the error message.

我打开了概览页面,我猜我可以设置服务器位置和部署路径以使 spring 网络应用程序可用.

I opened overview page, and I guessed that I could set server location and deploy path to make spring web app available.

但是,我不知道如何设置服务器位置(我在步骤 1 中安装的 Tomcat 服务器位置).

However, I have no idea how to set the server location (Tomcat server location that I installed in step1).

我尝试将 manolitomvc 目录复制到 Tomcat 主文档目录 (/Library/Tomcat/webapps) 中,但它不起作用.

I tried to copy the manolitomvc directory into Tomcat main document directory(/Library/Tomcat/webapps), but it doesn't work.

如何部署 Web 应用程序以便我可以通过 http://localhost:8080/manolitomvc 访问 Spring Web 应用程序?

How can I deploy the web app so that I can access the spring web app at http://localhost:8080/manolitomvc?

你能推荐我可以遵循的任何其他实用教程来设置和使用 spring 框架吗?

Could you recommend any other practical tutorial that I can follow to setup and use spring framework?

推荐答案

尽量不要使用VMware TC" 尝试从正常"的 Tomcat 开始.

Try not to use "VMware TC" try to start with a "normal" Tomcat.

  • 在服务器"选项卡中打开上下文菜单:新建/服务器
  • 选择 Apache/Tomcat v?-> 下一个
  • 选择 Tomcat 安装目录,或点击下载并安装.."

这篇关于使用 Spring Tool Suite 部署 Spring Web 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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