Spring DevTools does not work

1

Well, I'm starting to develop a small project for learning in Spring and I have a problem with one of the POM settings:

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-data-jpa</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-thymeleaf</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>

    <dependency>
        <groupId>mysql</groupId>
        <artifactId>mysql-connector-java</artifactId>
    </dependency>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-tomcat</artifactId>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
    </dependency>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>       
    </dependency>
</dependencies>

One of the functions of DevTools is to give an "automatic" refresh on the page, does not it? Well, when I'm developing that I press CTRL+S it does nothing, I always have to restart the server.

Is there a problem in the dependencies? I also noticed that it is not referenced at server startup. If you need any more code samples, just ask.

    
asked by anonymous 09.12.2016 / 15:58

0 answers