If I change a java file / servlet, press run and pick update classes and resources, the old file is still used when I open the browser. If instead I pick rerun server (tomcat), the updated version of the file is loaded.
I could restart the server every time I change a file, but that is slow and seems clumsy. How should I go about loading the updated version of the java file?
If your webapp in debug mode, changes to your jsp and some changes to your classes (no method signature changes) can be hot redeployed without having to restart your tomcat server.
Once your tomcat is started in debug mode, go to the debug view click on the blue arrow (see picture below), then you have the choice to
if you just changed jsp file, update resources should be enough. if you changed a class without changing method signature, update classes and ressources, should be enough and class should be reloaded. If you change, add methods, then you need to redeploy your webapplication.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With