Skip to content

Commit

Permalink
新增默认访问首页的提示语
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzongzhuan committed Jul 11, 2021
1 parent 30b06e0 commit 8dee57f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/ruoyi/framework/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,13 @@ protected void configure(HttpSecurity httpSecurity) throws Exception
.antMatchers("/login", "/captchaImage").anonymous()
.antMatchers(
HttpMethod.GET,
"/",
"/*.html",
"/**/*.html",
"/**/*.css",
"/**/*.js"
"/**/*.js",
"/profile/**"
).permitAll()
.antMatchers("/profile/**").anonymous()
.antMatchers("/common/download**").anonymous()
.antMatchers("/common/download/resource**").anonymous()
.antMatchers("/swagger-ui.html").anonymous()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package com.ruoyi.project.system.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.framework.config.RuoYiConfig;

/**
* 首页
*
* @author ruoyi
*/
@RestController
public class SysIndexController
{
/** 系统基础配置 */
@Autowired
private RuoYiConfig ruoyiConfig;

/**
* 访问首页,提示语
*/
@RequestMapping("/")
public String index()
{
return StringUtils.format("欢迎使用RuoYi后台管理框架,当前版本:v{}", ruoyiConfig.getVersion());
}
}

0 comments on commit 8dee57f

Please sign in to comment.