Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
c02dad2c
Commit
c02dad2c
authored
Jul 11, 2021
by
RuoYi
Browse files
默认访问首页新增提示语
parent
1bfa14e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysIndexController.java
0 → 100644
View file @
c02dad2c
package
com.ruoyi.web.controller.system
;
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.config.RuoYiConfig
;
import
com.ruoyi.common.utils.StringUtils
;
/**
* 首页
*
* @author ruoyi
*/
@RestController
public
class
SysIndexController
{
/** 系统基础配置 */
@Autowired
private
RuoYiConfig
ruoyiConfig
;
/**
* 访问首页,提示语
*/
@RequestMapping
(
"/"
)
public
String
index
()
{
return
StringUtils
.
format
(
"欢迎使用RuoYi后台管理框架,当前版本:v{}"
,
ruoyiConfig
.
getVersion
());
}
}
ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java
View file @
c02dad2c
...
@@ -100,12 +100,13 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
...
@@ -100,12 +100,13 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
.
antMatchers
(
"/login"
,
"/captchaImage"
).
anonymous
()
.
antMatchers
(
"/login"
,
"/captchaImage"
).
anonymous
()
.
antMatchers
(
.
antMatchers
(
HttpMethod
.
GET
,
HttpMethod
.
GET
,
"/"
,
"/*.html"
,
"/*.html"
,
"/**/*.html"
,
"/**/*.html"
,
"/**/*.css"
,
"/**/*.css"
,
"/**/*.js"
"/**/*.js"
,
"/profile/**"
).
permitAll
()
).
permitAll
()
.
antMatchers
(
"/profile/**"
).
anonymous
()
.
antMatchers
(
"/common/download**"
).
anonymous
()
.
antMatchers
(
"/common/download**"
).
anonymous
()
.
antMatchers
(
"/common/download/resource**"
).
anonymous
()
.
antMatchers
(
"/common/download/resource**"
).
anonymous
()
.
antMatchers
(
"/swagger-ui.html"
).
anonymous
()
.
antMatchers
(
"/swagger-ui.html"
).
anonymous
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment