Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
matrix
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
mall
arch
matrix
Commits
4d25c4c4
Commit
4d25c4c4
authored
Jun 19, 2019
by
qiuweili123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change version
parent
2d562376
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
FeignConfig.java
openfeign-starter/src/main/java/com/secoo/mall/openfeign/config/FeignConfig.java
+5
-0
pom.xml
pom.xml
+1
-1
WebConfig.java
web-starter/src/main/java/com/secoo/mall/web/config/WebConfig.java
+1
-1
No files found.
openfeign-starter/src/main/java/com/secoo/mall/openfeign/config/FeignConfig.java
View file @
4d25c4c4
package
com
.
secoo
.
mall
.
openfeign
.
config
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
org.springframework.context.annotation.Configuration
;
@Configuration
public
class
FeignConfig
{
// TODO: 2019/5/8 实现enable package自动加载 实现灰度发布 client请求日志拦截
...
...
pom.xml
View file @
4d25c4c4
...
...
@@ -6,7 +6,7 @@
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix
</artifactId>
<version>
1.0.
1
-DEV-SNAPSHOT
</version>
<version>
1.0.
3
-DEV-SNAPSHOT
</version>
<packaging>
pom
</packaging>
...
...
web-starter/src/main/java/com/secoo/mall/web/config/WebConfig.java
View file @
4d25c4c4
...
...
@@ -46,7 +46,7 @@ public class WebConfig implements WebMvcConfigurer {
CookieLocaleResolver
localeResolver
=
new
CookieLocaleResolver
();
localeResolver
.
setCookieName
(
"language"
);
//设置默认区域
localeResolver
.
setDefaultLocale
(
Locale
.
CANADA
);
localeResolver
.
setDefaultLocale
(
Locale
.
SIMPLIFIED_CHINESE
);
localeResolver
.
setCookieMaxAge
(
3600
);
//设置cookie有效期.
return
localeResolver
;
}
...
...
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