Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cms_sys
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
西魏
cms_sys
Commits
6d5a3c25
Commit
6d5a3c25
authored
Sep 21, 2020
by
sgjj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改引用名
parent
571d9bf7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
I18NConfig.java
src/main/java/net/mingsoft/config/I18NConfig.java
+3
-3
application.yml
src/main/resources/application.yml
+1
-1
No files found.
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
Markdown
is supported
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