简体   繁体   中英

How to deploy Java project to Tomcat

I have downloaded a sample extjs+mysql+spring web project ( link ) with a java backend that I'd like to set up locally on my machine. I have installed Tomcat server, and MySQL DB but it's my first time ever with a java-based web application and I have troubles setting it up. Does it require any modifications ? I thought that .jsp files should be included there, but I can only see .java sources. Do I need to build it before it's ready for deployment ? Any help appreciated.

This is an Eclipse project so you'd need to run it from within Eclipse.

  • Download Eclipse
  • Open the project in it
  • Define a Tomcat container in your Servers tab
  • Drag and drop the project onto the newly defined Tomcat
  • Run it

if your are using eclipse IDE for development, create a project in eclipse, run as "run on server" , and set the running server (eg TOMCAT 7). and thats it,, make sure, you correctly setup spring project in IDE with all needed jar files .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM