How to make changes to the project and run it through the IDE without deploying it to the server

I want to know how I can make changes to my code and run it on the server directly from my eclipse IDE instead of converting my project every time to a war file and deploying it to the server.

I do not want to see that my changes are reflected only by converting it to a war file and deploying it every time on the server. Can I see them on the fly right through my eclipse environment, as soon as I make some changes ..

Plz help me, I don’t know exactly what to search in google. Seek help from SO.

Thanks in advance.

PS: Sorry, my bad !!! I should have provided more information ... I am working on a Spring project based on Hibernate ... which only has java files

+5
source share
5 answers

In response to sjr answer, the quick gate archetype contains such a main class. There he is:

Start.java (HEAD)

There is nothing specific to the gate; it can be used to launch any Java webapp project.

Copy it to src / test / java and execute it as main class

you will need the following dependencies in your pom:

<dependency>
    <groupId>org.eclipse.jetty.aggregate</groupId>
    <artifactId>jetty-all-server</artifactId>
    <version>7.3.0.v20110203</version>
    <scope>provided</scope>
</dependency>
+2
source

You can use the Eclipse-WTP plugin to process your web projects ( http://www.eclipse.org/webtools ). With this plugin, you can create “dynamic web projects” that can be deployed to a specified (Tomcat) server.

maven, maven-webapp (webapp-archetype), m2eclipse maven- .

+3

, , ( , ):

main Java:

  • (, Jetty Tomcat)
  • , API .
  • URL- .
  • HTTP-

. -, Eclipse.

+2

  • , javascript, css .
  • , , ( web.xml, spring conf conf). , , , .

  • Java , , ( 100% )

0

HotSwap WTP eclipse, . tomcat hot WTP eclipse.

HotSwap , , , / , , , , .. XML (, web.xml, faces-config.xml) .

JRebel , . free/open source here

0
source

All Articles