Example usage for org.springframework.boot.devtools.autoconfigure RemoteDevToolsProperties getRestart

List of usage examples for org.springframework.boot.devtools.autoconfigure RemoteDevToolsProperties getRestart

Introduction

In this page you can find the example usage for org.springframework.boot.devtools.autoconfigure RemoteDevToolsProperties getRestart.

Prototype

public Restart getRestart() 

Source Link

Usage

From source file:org.springframework.boot.devtools.remote.client.RemoteClientConfiguration.java

@PostConstruct
private void logWarnings() {
    RemoteDevToolsProperties remoteProperties = this.properties.getRemote();
    if (!remoteProperties.getDebug().isEnabled() && !remoteProperties.getRestart().isEnabled()) {
        logger.warn("Remote restart and debug are both disabled.");
    }/*from w ww.  j  av a  2s.c om*/
    if (!this.remoteUrl.startsWith("https://")) {
        logger.warn("The connection to " + this.remoteUrl
                + " is insecure. You should use a URL starting with 'https://'.");
    }
}