Why do images appear only after you restart Intelij Idea?

Using Spring and Thymeleaf

Development environment - intelij Idea

Problem: when I add any image in the project folder and launch the app, the image is not displayed. The image appears only after I make presupus Intelij Idea.
I'm sick of capity times to restart the IDE after adding a new image)

How to fix it?

The image in the project:


Before you did the restart environment


Once done restart environment:

April 19th 20 at 12:04
1 answer
April 19th 20 at 12:06
You do not need to restart the program itself.
Proceed as follows:

After you add a new static, or make changes to your project, in order to see the changes make the Build project (ctrl + F9) or Rebuild Project.

In order not to bother each time by clicking on the build / rebuild, turn on auto build.
To do this, follow the steps:
SHIFT+Ctrl+A ->registry-> compiler.automake.allow.when.app.running

file->settings->build,execution,deployment. Go to ->compiler->build project automatically.

3) Add the browser extension LiveReload.
Then after making edits every time will be auto Assembly
c LiveReload I did it, if you change the text where either the content changes automatically. I forgot to write that I use DevTools to quickly see the content change.
With images all the same. When I build my project, the page does not see the image, the 404 status in the developer console of the browser.
APU items are fulfilled, not working - daron.Bailey commented on April 19th 20 at 12:09
@daron.Bailey, I have also the same situation. I'm dangerously after adding files, make build project. - Neva.Mante commented on April 19th 20 at 12:12

Find more questions by tags ThymeleafSpring