package com.ds.ce.diy.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration
public class WebConfig extends WebMvcConfigurerAdapter {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/profile/**/password").setViewName("app");
        registry.addViewController("/login").setViewName("login.html");
    }
}

package com.ds.ce.diy.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration
public class WebConfig extends WebMvcConfigurerAdapter {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/tools").setViewName("app");
        registry.addViewController("/users").setViewName("app");
        registry.addViewController("/profile/**/password").setViewName("app");
        registry.addViewController("/login").setViewName("login.html");
    }
}

add /tools and /users view resolver to /