Java 类org.springframework.web.servlet.config.annotation.ViewControllerRegistry 实例源码

项目:basic    文件:Application.java   
@Bean
public WebMvcConfigurer webMvcConfigurer() {
    return new WebMvcConfigurerAdapter() {
        @Override
        public void addViewControllers(ViewControllerRegistry viewControllerRegistry) {

            // 首页默认加载web端
            viewControllerRegistry.addViewController("/").setViewName("/web/index.html");
            viewControllerRegistry.addViewController("/index.html").setViewName("redirect:/");

            // web首页
            viewControllerRegistry.addViewController("/web").setViewName("/web/index.html");

            // webapp首页
            viewControllerRegistry.addViewController("/webapp").setViewName("/webapp/index.html");

            viewControllerRegistry.setOrder(Ordered.HIGHEST_PRECEDENCE);
            super.addViewControllers(viewControllerRegistry);
        }
    };
}
项目:quickmon    文件:WebMvcConfig.java   
@Override
public void addViewControllers(ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addRedirectViewController("/", "/ui");

    registry.addViewController("/ui/**").setViewName("forward:/index.html");
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:kbase-doc    文件:WebMvcConfigurer.java   
@Override
public void addViewControllers(ViewControllerRegistry registry) {
    registry.addViewController( "/" ).setViewName("index");
       registry.setOrder(Ordered.HIGHEST_PRECEDENCE );

       registry.addViewController( "/edit" ).setViewName("edit");
       registry.addViewController( "/upload" ).setViewName("upload");
    super.addViewControllers(registry);
}
项目:JavaQuarkBBS    文件:MyAdapter.java   
/**
 * 配置默认路径为文档
 * @param registry
 */
@Override
public void addViewControllers( ViewControllerRegistry registry ) {
    registry.addViewController( "" ).setViewName( "redirect:/swagger-ui.html" );
    registry.setOrder( Ordered.HIGHEST_PRECEDENCE );
    super.addViewControllers( registry );
}
项目:springboot-spwa-gae-demo    文件:WebConfig.java   
@Bean
public WebMvcConfigurerAdapter forwardToIndex() {
    return new WebMvcConfigurerAdapter() {
        @Override
        public void addViewControllers(ViewControllerRegistry registry) {
            // forward requests to /admin and /user to their index.html
            registry.addViewController("/**").setViewName(
                    "forward:/index.html");
        }
    };
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:gauravbytes    文件:MvcConfig.java   
@Override
public void addViewControllers(ViewControllerRegistry registry) {
    registry.addViewController("/viewUsers").setViewName("viewUsers");
    registry.addViewController("/index").setViewName("index");
    registry.addViewController("/").setViewName("index");
    registry.addViewController("/login").setViewName("login");
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:springMvc4.x-project    文件:MyMvcConfig.java   
@Override
public void addViewControllers(ViewControllerRegistry registry) {
    registry.addViewController("/index").setViewName("/index");
    registry.addViewController("/toUpload").setViewName("/upload");
    registry.addViewController("/converter").setViewName("/converter");
    registry.addViewController("/sse").setViewName("/sse");
}
项目:springMvc4.x-project    文件:MyMvcConfig.java   
@Override
public void addViewControllers(ViewControllerRegistry registry) {
    registry.addViewController("/index").setViewName("/index");
    registry.addViewController("/toUpload").setViewName("/upload");
    registry.addViewController("/converter").setViewName("/converter");
    registry.addViewController("/sse").setViewName("/sse");
    registry.addViewController("/async").setViewName("/async");
}
项目:springMvc4.x-project    文件:MyMvcConfig.java   
@Override
public void addViewControllers(ViewControllerRegistry registry) {
    registry.addViewController("/index").setViewName("/index");
    registry.addViewController("/toUpload").setViewName("/upload");
    registry.addViewController("/converter").setViewName("/converter");
    registry.addViewController("/sse").setViewName("/sse");
    registry.addViewController("/async").setViewName("/async");
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:lyre    文件:Lyre.java   
@Bean
public WebMvcConfigurerAdapter webMvcConfigurerAdapter() {
    return new WebMvcConfigurerAdapter() {
        @Override
        public void addViewControllers(ViewControllerRegistry registry) {
            registry.addViewController("/")
                .setStatusCode(HttpStatus.PERMANENT_REDIRECT)
                .setViewName("/swagger-ui.html");
        }
    };
}
项目:cloud    文件:MvcConfig.java   
@Override
public void addViewControllers(ViewControllerRegistry registry) {
    registry.addViewController("/").setViewName("home");
    registry.addViewController("/home").setViewName("home");
    registry.addViewController("/login").setViewName("login");
    registry.addViewController("/oauth/confirm_access").setViewName("authorize");
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:joal    文件:WebMvcConfiguration.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    registry.addViewController("/ui").setViewName("redirect:ui/");
    registry.addViewController("/ui/").setViewName("forward:index.html");
    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
    super.addViewControllers(registry);
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:flowing-retail    文件:TomcatConfiguration.java   
@Bean
public WebMvcConfigurerAdapter forwardToIndex() {
    return new WebMvcConfigurerAdapter() {
        @Override
        public void addViewControllers(ViewControllerRegistry registry) {
            // forward requests index.htm (as we might have two spring boot tomcats running in the same JVM they can see each others resources
            // so we use different index files to avoid confusion
            registry.addViewController("/").setViewName(
                    "forward:/monitor.html");
        }
    };
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    super.addViewControllers(registry);

    registry.addViewController("/login/form")
            .setViewName("login");
    registry.addViewController("/errors/403")
            .setViewName("/errors/403");

    registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
}