package com.oceam.controller;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
/**
* 功能简述:
*
* @author caidingnu
* @create 2019-03-26 16:29
* @since 1.0.0
*/
@Configuration
public class OP extends WebMvcConfigurationSupport {
@Override
protected void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/").setViewName("file");
registry.addViewController("/download").setViewName("downloa
springboot通过继承WebMvcConfigurationSupport 实现打开页面,页面跳转
最新推荐文章于 2024-04-14 20:32:28 发布