简体   繁体   中英

Run spring project in eclipse

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.

在此处输入图片说明

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?

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.

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

Here is a tutorial to do this

您需要安装Web工具平台 ,该平台支持常用的Web应用程序工具。

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