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
MCMS
Commits
15802e87
Commit
15802e87
authored
Apr 09, 2019
by
ms group dev
Browse files
设置欢迎页
parent
d712b3cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/net/mingsoft/config/WebConfig.java
View file @
15802e87
...
@@ -145,7 +145,7 @@ public class WebConfig implements WebMvcConfigurer {
...
@@ -145,7 +145,7 @@ public class WebConfig implements WebMvcConfigurer {
*/
*/
@Override
@Override
public
void
addViewControllers
(
ViewControllerRegistry
registry
)
{
public
void
addViewControllers
(
ViewControllerRegistry
registry
)
{
registry
.
addViewController
(
"/"
).
setViewName
(
"forward:/
html/1/index.html
"
);
registry
.
addViewController
(
"/"
).
setViewName
(
"forward:/
index
"
);
registry
.
setOrder
(
Ordered
.
HIGHEST_PRECEDENCE
);
registry
.
setOrder
(
Ordered
.
HIGHEST_PRECEDENCE
);
WebMvcConfigurer
.
super
.
addViewControllers
(
registry
);
WebMvcConfigurer
.
super
.
addViewControllers
(
registry
);
}
}
...
...
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