Resources not refreshable after adding to web application in spring boot

This is my folder structure. I am using military build. When I upload an image to my web-app / resources / img folder, I cannot get that image without restarting my server. (Error 404). FYI, when I update any js file, I need to restart the server to get the update. I've tried some questions and solutions from SO and google. But that doesn't help me. If you need any other information please comment. folder stucture

+3


source to share


1 answer


The issue was resolved with JRebel. I added additional config to Rebel.xml and put it in webapp directory.



<web>
    <link target="/">
        <dir name="G:/your_project_location/src/main/webapp"/>
    </link>
</web>

      

+4


source







All Articles