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
dba51002
Commit
dba51002
authored
Dec 02, 2020
by
wujj
Browse files
国际化
parent
00dd38dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
doc/5.2-patch.sql
View file @
dba51002
...
@@ -80,7 +80,8 @@ DROP COLUMN `app_id`;
...
@@ -80,7 +80,8 @@ DROP COLUMN `app_id`;
ALTER
TABLE
`cms_category`
ALTER
TABLE
`cms_category`
MODIFY
COLUMN
`category_id`
bigint
(
20
)
ZEROFILL
NULL
DEFAULT
NULL
COMMENT
'所属栏目'
AFTER
`id`
,
MODIFY
COLUMN
`category_id`
bigint
(
20
)
ZEROFILL
NULL
DEFAULT
NULL
COMMENT
'所属栏目'
AFTER
`id`
,
MODIFY
COLUMN
`mdiy_model_id`
int
(
11
)
NULL
DEFAULT
NULL
COMMENT
'栏目管理的内容模型id'
AFTER
`dict_id`
;
MODIFY
COLUMN
`mdiy_model_id`
int
(
11
)
NULL
DEFAULT
NULL
COMMENT
'栏目管理的内容模型id'
AFTER
`dict_id`
;
ALTER
TABLE
`cms_category`
CHANGE
COLUMN
`category_parent_id`
`category_parent_ids`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'父类型编号,多个id逗号'
AFTER
`mdiy_model_id`
;
ALTER
TABLE
`cms_content`
ALTER
TABLE
`cms_content`
CHANGE
COLUMN
`content_category_id`
`category_id`
bigint
(
20
)
UNSIGNED
NULL
COMMENT
'所属栏目'
AFTER
`id`
;
CHANGE
COLUMN
`content_category_id`
`category_id`
bigint
(
20
)
UNSIGNED
NULL
COMMENT
'所属栏目'
AFTER
`id`
;
...
...
src/main/java/net/mingsoft/config/WebConfig.java
View file @
dba51002
...
@@ -154,6 +154,10 @@ public class WebConfig implements WebMvcConfigurer {
...
@@ -154,6 +154,10 @@ public class WebConfig implements WebMvcConfigurer {
return
pool
;
return
pool
;
}
}
/**
* 国际化配置拦截
* @return
*/
@Bean
@Bean
public
MSLocaleResolver
localeResolver
(){
public
MSLocaleResolver
localeResolver
(){
return
new
MSLocaleResolver
();
return
new
MSLocaleResolver
();
...
...
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