Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JDCLOUD
Project
Project
Details
Activity
Releases
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
gavelinfo
JDCLOUD
Commits
28c37814
Commit
28c37814
authored
Jul 25, 2022
by
zhoumaotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
f13d85a3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
13 deletions
+37
-13
DatasyncServiceImpl.java
.../com/gavel/datasync/service/impl/DatasyncServiceImpl.java
+2
-12
application.properties
.../gavel-datasync/src/main/resources/application.properties
+1
-1
logback-spring.xml
...cweb/gavel-datasync/src/main/resources/logback-spring.xml
+34
-0
No files found.
gavel-web/datasyncweb/gavel-datasync/src/main/java/com/gavel/datasync/service/impl/DatasyncServiceImpl.java
View file @
28c37814
package
com
.
gavel
.
datasync
.
service
.
impl
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gavel.common.utils.DateUtils
;
import
com.gavel.common.utils.NumberUtils
;
import
com.gavel.datasync.service.DatasyncService
;
...
...
@@ -19,21 +18,12 @@ import com.jd.open.api.sdk.response.supplier.DropshipDpsSearchAllOrdersResponse;
import
com.jd.open.api.sdk.response.supplier.VcItemBrandsFindResponse
;
import
com.jd.open.api.sdk.response.supplier.VcItemCategoriesFindResponse
;
import
com.jd.open.api.sdk.response.supplier.VcItemProductsFindResponse
;
import
com.jd.security.tde.InvalidKeyPermission
;
import
com.jd.security.tde.InvalidTokenException
;
import
com.jd.security.tde.MalformedException
;
import
com.jd.security.tdeclient.*
;
import
com.jd.security.tdeclient.SecretJdClient
;
import
com.jd.security.tdeclient.TDEClient
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.stereotype.Service
;
import
javax.crypto.BadPaddingException
;
import
javax.crypto.IllegalBlockSizeException
;
import
javax.crypto.NoSuchPaddingException
;
import
java.io.IOException
;
import
java.security.InvalidAlgorithmParameterException
;
import
java.security.InvalidKeyException
;
import
java.security.NoSuchAlgorithmException
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
...
...
gavel-web/datasyncweb/gavel-datasync/src/main/resources/application.properties
View file @
28c37814
#服务器端口
server.port
=
9080
\ No newline at end of file
server.port
=
8080
\ No newline at end of file
gavel-web/datasyncweb/gavel-datasync/src/main/resources/logback-spring.xml
0 → 100644
View file @
28c37814
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include
resource=
"org/springframework/boot/logging/logback/defaults.xml"
/>
<property
name=
"LOG_FILE"
value=
"logs/datasync.log"
/>
<include
resource=
"org/springframework/boot/logging/logback/console-appender.xml"
/>
<appender
name=
"ROLLING-FILE"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<encoder>
<pattern>
%d %p (%file:%line\)- %m%n
</pattern>
<!-- 控制台也要使用UTF-8,不要使用GBK,否则会中文乱码 -->
<charset>
UTF-8
</charset>
</encoder>
<file>
${LOG_FILE}
</file>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"
>
<fileNamePattern>
${LOG_FILE}.%d{yyyy-MM-dd}.%i.gz
</fileNamePattern>
<maxHistory>
10
</maxHistory>
<totalSizeCap>
5GB
</totalSizeCap>
<timeBasedFileNamingAndTriggeringPolicy
class=
"ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"
>
<maxFileSize>
32MB
</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
</appender>
<logger
name=
"com.gavel"
level=
"INFO"
additivity=
"false"
>
<appender-ref
ref=
"CONSOLE"
/>
<appender-ref
ref=
"ROLLING-FILE"
/>
</logger>
<root
level=
"INFO"
>
<appender-ref
ref=
"CONSOLE"
/>
</root>
</configuration>
\ No newline at end of file
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