What happens behind the scenes of deploying a Spring MVC application for tomcat outside of eclipse?

My guess is that the downside to using an amazing IDE like eclipse is that you will miss the point for what happens behind the scenes of the application. I am a ruby ​​developer, not a Java veteran. Therefore, I encoded the project in java and used the spring structure for IOC and MVC. Can someone explain to me what happens when I choose to run on the server in eclipse? Because in the end I will deploy this application masterpiece on a Linux server. Here is my setup. I am using spring MVC 3 and the maven plugin in eclipse. In the pom.xml file, I have stuff like the latest version of spring release, log4j, spring mvc, spring, etc.

I tested my application on localhost using the convenient option to run on the server in the eclipse IDE. The server configuration in eclipse indicates the location of the tomcat directory where I installed tomcat 7. Please demystify what happens behind the scenes and what I will need to do if I want to deploy this application on a production server. The more details, the better. Thanks for the ton in advance.

+1
source share
3 answers

Deploying a web application for Tomcat is just as easy (assuming Tomcat is installed)

  • Associate the application in .warwith the correct format .
  • .war /webapps Tomcat.
  • /bin/startup.[sh|bat] script Tomcat.

, , . . Tomcat.

3 Tomcat .war /webapps , .war. . script java, WEB-INF/[class|lib|...] Tomcat.

, Eclipse .

+1

-, , . , spring, .

SO, - web.xml. SO spring mvc, , DispatcherServlet, . MVC . http://docs.spring.io/spring/docs/3.2.x/spring-framework-reference/html/mvc.html

, () , , . java , , jar ANT, GRADLE, MAVEN , . Spring . , , . , tomcat, .

, .

0

majic .

- "" Eclipse. , Eclipse ( ) .

./metadata/.plugins/org.eclipse.wst.server.core/ Eclipse. tomcat eclipse.


Tomcat , . FYI, , Manager, .

0

Source: https://habr.com/ru/post/1545689/


All Articles