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
8615e585
Commit
8615e585
authored
May 08, 2019
by
qiuweili123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add module
parent
001708c2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
1 deletions
+42
-1
logback-spring.xml
common-util/src/main/resources/logback-spring.xml
+1
-1
pom.xml
openfeign-starter/pom.xml
+32
-0
FeignConfig.java
openfeign-starter/src/main/java/com/secoo/mall/openfeign/config/FeignConfig.java
+6
-0
pom.xml
pom.xml
+1
-0
WebConfig.java
web-starter/src/main/java/com/secoo/mall/web/config/WebConfig.java
+2
-0
No files found.
common-util/src/main/resources/logback-spring.xml
View file @
8615e585
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<springProperty
scope=
"context"
name=
"logName"
source=
"spring.application.name"
defaultValue=
"app"
/>
<springProperty
scope=
"context"
name=
"logName"
source=
"spring.application.name"
defaultValue=
"app"
/>
<springProperty
scope=
"context"
name=
"logPath"
source=
"log.path"
defaultValue=
"./logs"
/>
<springProperty
scope=
"context"
name=
"logPath"
source=
"log.path"
defaultValue=
"./logs"
/>
<property
name=
"PATTERN"
value=
"
%d{yyyy-MM-dd HH:mm:ss.SSS}|%X{traceId}|%thread|%-5level
|%logger{36}-%msg%n"
/>
<property
name=
"PATTERN"
value=
"
- |%d{yyyy-MM-dd HH:mm:ss.SSS}|%-5level|%X{traceId}|%thread
|%logger{36}-%msg%n"
/>
<!-- <property name="PATTERN" value="%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %X{requestId} %-5level %logger{36} - %msg%n"/>-->
<!-- <property name="PATTERN" value="%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %X{requestId} %-5level %logger{36} - %msg%n"/>-->
...
...
openfeign-starter/pom.xml
0 → 100644
View file @
8615e585
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
mall-common
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<version>
1.0.2.1006-DEV-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
openfeign-starter
</artifactId>
<dependencies>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
common-util
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-openfeign
</artifactId>
<exclusions>
<exclusion>
<groupId>
com.google.guava
</groupId>
<artifactId>
guava
</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>
\ No newline at end of file
openfeign-starter/src/main/java/com/secoo/mall/openfeign/config/FeignConfig.java
0 → 100644
View file @
8615e585
package
com
.
secoo
.
mall
.
openfeign
.
config
;
public
class
FeignConfig
{
// TODO: 2019/5/8 实现enable package自动加载 实现灰度发布 client请求日志拦截
}
pom.xml
View file @
8615e585
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
<module>
elasticsearch-starter
</module>
<module>
elasticsearch-starter
</module>
<module>
dubbo-starter
</module>
<module>
dubbo-starter
</module>
<module>
web-starter
</module>
<module>
web-starter
</module>
<module>
openfeign-starter
</module>
</modules>
</modules>
...
...
web-starter/src/main/java/com/secoo/mall/web/config/WebConfig.java
View file @
8615e585
...
@@ -33,12 +33,14 @@ public class WebConfig implements WebMvcConfigurer {
...
@@ -33,12 +33,14 @@ public class WebConfig implements WebMvcConfigurer {
messageSource
.
setBasename
(
"i18n/message"
);
messageSource
.
setBasename
(
"i18n/message"
);
return
messageSource
;
return
messageSource
;
}
}
@Bean
@Bean
public
LocaleResolver
localeHeaderResolver
()
{
public
LocaleResolver
localeHeaderResolver
()
{
AcceptHeaderLocaleResolver
localeResolver
=
new
AcceptHeaderLocaleResolver
();
AcceptHeaderLocaleResolver
localeResolver
=
new
AcceptHeaderLocaleResolver
();
localeResolver
.
setDefaultLocale
(
Locale
.
SIMPLIFIED_CHINESE
);
localeResolver
.
setDefaultLocale
(
Locale
.
SIMPLIFIED_CHINESE
);
return
localeResolver
;
return
localeResolver
;
}
}
@Bean
@Bean
public
LocaleResolver
localeCookieResolver
()
{
public
LocaleResolver
localeCookieResolver
()
{
CookieLocaleResolver
localeResolver
=
new
CookieLocaleResolver
();
CookieLocaleResolver
localeResolver
=
new
CookieLocaleResolver
();
...
...
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