I have a web application. I mostly used notepad++ for development. I need to use Intellij to run two Tomcat servlets. My ideal set up is to run the two serlets in IntelliJ and then minimise and never use intellij again (i.e. make my changes in notepad++, save. then just refresh my browser tab).
To stop myself from having to rerun the servlets every time I make a code change, I set up springboot devtools and added configuration below:
I followed this link: https://dzone.com/articles/spring-boot-application-live-reload-hot-swap-with (had to alter the first step to do the same thing but with gradle i.e. add
compile("org.springframework.boot:spring-boot-devtools")
to the gradle.build (the correct one, not any random one).
then after finishing the rest of the steps from the link, added this line to application.properties:
spring.thymeleaf.cache= false
THEN when running the tomcat servlets in DEBUG mode
After doing all of the above, this works by: when servlets are running in intellij -make your UI code change -save it (in my case i was using notepad++ not intellij - go back to intellij (just bring the window into focus) - then go back to browser and refresh the browser
Currently, my code changes will only be applied if I bring the Intellij window into focus before refreshing my browser. Is it possible to set something up so intellij doesn't need to be in focus?
i.e. open intellij, run my two servlets, then minimise it and never touch it again. I want to ignore it and carry on just using my browser and notepad++ for dev work