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
6d5a3c25
Commit
6d5a3c25
authored
Sep 21, 2020
by
sgjj
Browse files
修改引用名
parent
571d9bf7
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/net/mingsoft/config/I18NConfig.java
View file @
6d5a3c25
...
...
@@ -19,13 +19,13 @@ public class I18NConfig {
@Value
(
"${ms.local.default:zh_CN}"
)
private
String
defaultLocal
;
@Value
(
"$
{
ms.local.messages:zh_CN,en_US}"
)
private
String
m
essages
;
@Value
(
"$ms.local.
local-
messages:zh_CN,en_US}"
)
private
String
localM
essages
;
@PostConstruct
public
void
init
()
throws
IOException
,
TemplateException
{
configuration
.
setSharedVariable
(
"localDefault"
,
defaultLocal
);
configuration
.
setSharedVariable
(
"localMessages"
,
m
essages
.
split
(
","
));
configuration
.
setSharedVariable
(
"localMessages"
,
localM
essages
.
split
(
","
));
}
}
src/main/resources/application.yml
View file @
6d5a3c25
...
...
@@ -15,7 +15,7 @@ logging:
ms
:
local
:
default
:
zh_CN
#默认语言
messages
:
zh_CN,en_US
#全部语言
local-
messages
:
zh_CN,en_US
#全部语言
# scheme: https #解决使用代理服务器代理应用时标签解析域名依旧为http的问题
swagger
:
enable
:
true
#启用swagger文档,生产的时候务必关掉
...
...
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