I need the Spring boot application of mine to hot reload when a particular input file has changed. I have added the spring loaded plugin as shown below.
<build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <dependencies>
                    <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>springloaded</artifactId>
                        <version>1.2.6.RELEASE</version>
                    </dependency>
                </dependencies>
            </plugin>
        </plugins>
    </build>
Then I am running the application as shown below.
mvn spring-boot:run -Drun.jvmArguments="-Dfilename=test/data/test.txt"
Application runs fine, but when I make changes to this test.txt, nothing is happening to the output. Hot reload is not happening. What am I doing wrong here? Is there anything else I need to do? Are there any better ways to achieve this? Any help would be much appreciated.
 
     
    