Vaadin + Spring BOOT http to https

Hi, i use Vaadin 14 with spring boot, i need redirect to https when user make a call in http

this is the link of my system. → this link works ok, with security certify → i need redirect to

how i do this?

tank you so much.

ps: sorry my bad english.

Perhaps some useful pointers can be found here:

Tank you so much for your reply you know Where i insert this http.requiresChannel().anyRequest().requiresSecure() in my code?

i try to insert and i received this error:
Caused by: java.lang.IllegalStateException: Can’t configure anyRequest after itself
at org.springframework.util.Assert.state( ~[spring-core-5.2.7.RELEASE.jar!/:5.2.7.RELEASE]

    at ~[spring-security-config-5.3.3.RELEASE.jar!/:5.3.3.RELEASE]

    at ~[classes!/:0.0.1-SNAPSHOT]
    protected void configure(HttpSecurity http) throws Exception {
        // Not using Spring CSRF here to be able to use plain HTML for the login page
                // Register our CustomRequestCache, that saves unauthorized access attempts, so
                // the user is redirected after login.
                .requestCache().requestCache(new CustomRequestCache())
                // Restrict access to our application.
                // Allow all flow internal requests.
                // Allow all requests by logged in users.
                //TODO : fazer a checagem das ROLES                
                // Configure the login page.
                // Register the success handler that redirects users to the page they last tried
                // to access
                .successHandler(new SessionsRegister(sessionsService))
                // Configure logout