/** * @Title: ResourceConfig.java * @Description: * @Copyright: Copyright (c) 2018 * @Company:http://www.sinocon.cn * @author Administrator * @date 2018年8月6日 * @version 1.0 */ package cn.sinocon.hive.config; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; /** * @Title: ResourceConfig * @Description: * @author:Administrator * @date 2018年8月6日 */ @Configuration public class ResourceConfig implements WebMvcConfigurer { /* * 默认首页的设置,当输入域名是可以自动跳转到默认指定的网页 * * <p>Title: addViewControllers</p> * * <p>Description: </p> * * @param registry * * @see org.springframework.web.servlet.config.annotation.WebMvcConfigurer# * addViewControllers(org.springframework.web.servlet.config.annotation. * ViewControllerRegistry) * */ @Override public void addViewControllers(ViewControllerRegistry registry) { registry.addViewController("/").setViewName("forward:/index.html"); } }
最近下载更多
Hadoop_CPU LV6
2023年3月11日
xiaoyuer2 LV8
2022年11月22日
mj_yya LV41
2021年9月10日
清影恋歌 LV1
2021年9月8日
wsupsup LV16
2021年5月21日
best2018 LV46
2021年5月17日
xgc119 LV1
2021年5月11日
Anmbos LV1
2020年12月9日
yuanqingzhu LV1
2020年9月28日
39617531 LV2
2020年6月8日
最近浏览更多
akittyboy LV9
4月16日
0592lyj LV9
1月5日
哪里的完整版 LV7
2023年12月15日
Hadoop_CPU LV6
2023年3月11日
xiaoyuer2 LV8
2022年11月22日
dawnguarda LV17
2022年11月7日
DoingMe
2022年11月1日
暂无贡献等级
love_颓废 LV3
2022年7月28日
gugubird LV1
2022年6月2日
yuanhw_toto LV1
2022年5月27日