Run spring project in eclipse

18,356

Solution 1

Assuming you have added tomcat to your eclipse. If your project is pure java project then it will not show you the run on server option in eclipe. You need to change project facet and add dynamic web module to it then you can run it on tomcat server from eclipse.Basically project needs to be web project.

After doing above if it gives error or do not run properly, check your project deployment assembly and add projects webapps folder in eclipse.

Solution 2

you need to have a tomcat installed in your eclipse and run it on the server.

Here is a tutorial to do this

Share:
18,356
Code Program
Author by

Code Program

Updated on June 28, 2022

Comments

  • Code Program
    Code Program almost 2 years

    I am new in spring.I imported one spring project in eclipse and try to run with apache tomcat but it is not running.There is no main method in project.It contains only controllers and models and one jsp page.

    enter image description here

    When i tried to run as a java application is shows below dialog. Please help me.I tried all in google for how to run spring project but i can't understand.Please tell me how to do?