當前位置: 首頁>>代碼示例>>Java>>正文


Java ViewControllerRegistry.addRedirectViewController方法代碼示例

本文整理匯總了Java中org.springframework.web.servlet.config.annotation.ViewControllerRegistry.addRedirectViewController方法的典型用法代碼示例。如果您正苦於以下問題:Java ViewControllerRegistry.addRedirectViewController方法的具體用法?Java ViewControllerRegistry.addRedirectViewController怎麽用?Java ViewControllerRegistry.addRedirectViewController使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.springframework.web.servlet.config.annotation.ViewControllerRegistry的用法示例。


在下文中一共展示了ViewControllerRegistry.addRedirectViewController方法的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: addViewControllers

import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; //導入方法依賴的package包/類
@Override
public void addViewControllers(ViewControllerRegistry registry) {
    LOGGER.info("Configure additional ViewControllers");
    registry.addRedirectViewController("/", "/swagger-ui.html");
}
 
開發者ID:bartprokop,項目名稱:nice-api,代碼行數:6,代碼來源:WebMvcConfiguration.java

示例2: addViewControllers

import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; //導入方法依賴的package包/類
@Override
public void addViewControllers(ViewControllerRegistry registry) {
	super.addViewControllers(registry);

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

    registry.addViewController("/ui/**").setViewName("forward:/index.html");
}
 
開發者ID:gilles-stragier,項目名稱:quickmon,代碼行數:9,代碼來源:WebMvcConfig.java

示例3: addViewControllers

import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; //導入方法依賴的package包/類
@Override
public void addViewControllers(ViewControllerRegistry registry) {
    String contextPath = zuulakoProperties.getContextPath();
    if (StringUtils.hasText(contextPath)) {
        registry.addRedirectViewController(contextPath, server.getPath(contextPath) + "/");
    }
    registry.addViewController(contextPath + "/").setViewName("forward:index.html");
}
 
開發者ID:nabilblk,項目名稱:zuulako,代碼行數:9,代碼來源:WebConfig.java

示例4: addViewControllers

import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; //導入方法依賴的package包/類
/**
 * 將無需後端處理的 url 重定向
 */
@Override
public void addViewControllers(ViewControllerRegistry registry) {
    registry.addRedirectViewController("/", "/base-code/list");
}
 
開發者ID:drtrang,項目名稱:dynamic-data-source-demo,代碼行數:8,代碼來源:SpringMvcConfig.java

示例5: addViewControllers

import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; //導入方法依賴的package包/類
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    registry.addRedirectViewController("/", "/send");
}
 
開發者ID:osiegmar,項目名稱:setra,代碼行數:5,代碼來源:WebConfig.java

示例6: addViewControllers

import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; //導入方法依賴的package包/類
@Override
public void addViewControllers(ViewControllerRegistry registry) {
	registry.addRedirectViewController("/", "user");
}
 
開發者ID:lf23617358,項目名稱:training-sample,代碼行數:5,代碼來源:WebAppConfig.java

示例7: addViewControllers

import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; //導入方法依賴的package包/類
@Override
public void addViewControllers(ViewControllerRegistry registry) {
    registry.addRedirectViewController("/", "/swagger-ui.html");
}
 
開發者ID:helloworldtang,項目名稱:spring-boot-jwt-jpa,代碼行數:5,代碼來源:WebMvcConfig.java

示例8: addViewControllers

import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; //導入方法依賴的package包/類
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
  registry.addRedirectViewController("/", "/swagger-ui.html");
  super.addViewControllers(registry);
}
 
開發者ID:holisticon,項目名稱:holunda,代碼行數:6,代碼來源:SwaggerConfiguration.java

示例9: addViewControllers

import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; //導入方法依賴的package包/類
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
    registry.addRedirectViewController("/", "/main.html");
}
 
開發者ID:backpaper0,項目名稱:urgmstack,代碼行數:5,代碼來源:WebMvcConfig.java

示例10: addViewControllers

import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; //導入方法依賴的package包/類
/**
 * 設置歡迎頁
 * 相當於web.xml中的 welcome-file-list > welcome-file
 */
@Override
public void addViewControllers(ViewControllerRegistry registry) {
    registry.addRedirectViewController("/", "/index.html");
}
 
開發者ID:liangzai-cool,項目名稱:springsecuritystudy,代碼行數:9,代碼來源:WebAppConfig.java

示例11: addViewControllers

import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; //導入方法依賴的package包/類
@Override
public void addViewControllers(ViewControllerRegistry registry) {
	registry.addRedirectViewController("/", "/login");
}
 
開發者ID:edylle,項目名稱:pathological-reports,代碼行數:5,代碼來源:PathologicalReportsApplication.java

示例12: addViewControllers

import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; //導入方法依賴的package包/類
@Override
public void addViewControllers(ViewControllerRegistry registry) {
	registry.addRedirectViewController("/", "/home");
}
 
開發者ID:edylle,項目名稱:hockey-game,代碼行數:5,代碼來源:HockeyGameApplication.java


注:本文中的org.springframework.web.servlet.config.annotation.ViewControllerRegistry.addRedirectViewController方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。