Let's start the perfect development setup for the application we created. In a terminal, start the server in dev mode by running ./gradlew and in another terminal, start the client side development server by running yarn start.
Now when you make any changes on the server side simply run ./gradlew compileJava or if you are using an IDE click on the compile button.
With IntelliJ IDEA, files are automatically saved and so you can set up Ctrl + S to compile the classes giving you a nice workflow. In Eclipse, saving a class automatically compiles it.
When you make changes on the client side, simply save the file and webpack dev server and BrowserSync will do the rest.