Reputation: 2140
I'm currently new to deployment with Java and getting confused with jar and war. If someone can clear my couple of questions below
Do I need to convert my jar (Java spring services) to war and deploy on Jboss/Tomcat? or I should copy my jar on prod server and run java -jar "jar name" with nohup.
What should be the ideal production deployment approach?
It's an enterprise level application. Can someone please help me how do I deploy jar app in EC2 production server.
Upvotes: 1
Views: 361
Reputation: 343
Spring boot comes with an internal tomcat. So you do not need to deploy it inside a tomcat and neither do you need to convert it to a war.
You can just run it using the java - jar "jar name" command
Upvotes: 2