Rehan
Rehan

Reputation: 1

How to deploy a java webapp created in eclipse by spring mvc

I created a web app in eclipse by spring m v c and it run smoothly with eclipse run as server on a p ache tomcat and i also created a .war file in tomcat/web app. but i want ask that how i deploy this app for use on other computer and run on those computer without eclipse and J D K .(e.g.) as just my friend wants to use this app on his computer only with install J RE and how i deploy app for giving him for his use in easy way. please please any one can tell me how? Thanks in advance.

Upvotes: 0

Views: 345

Answers (1)

kulatamicuda
kulatamicuda

Reputation: 1661

You have only 2 options:

1) Let your friend install some servlet container. Eg. Apache tomcat. Then you simply put your war inside it's webaps directory and run tomcat.

2) Embedd your own servlet container into war (this is called executable war). The simples Spring way is to use Spring boot.

Upvotes: 1

Related Questions