Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
iClear-api
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
tao.mo
2023-02-17 15:19:30 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
638aa190b42844ae10f81b041a3022d536747e20
638aa190
1 parent
aa5d34c7
PI11-22LINE:
增加hscode模糊查询接口 mt 2023年2月17日15:19:24
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
doc/FedEx在线申报系统API - HSCode.docx
src/main/java/com/erry/iclear/dateInterface/api/VersionInterface.java
src/main/resources/logback.xml
doc/FedEx在线申报系统API - HSCode.docx
View file @
638aa19
No preview for this file type
src/main/java/com/erry/iclear/dateInterface/api/VersionInterface.java
View file @
638aa19
...
...
@@ -23,7 +23,7 @@ import java.util.Date;
@Slf4j
public
class
VersionInterface
{
//当前版本号
final
String
VERSION
=
"1.
4
"
;
final
String
VERSION
=
"1.
5
"
;
@ApiOperation
(
value
=
"获取当前API版本"
,
httpMethod
=
"GET"
,
notes
=
"ex: http://192.168.1.71:8080/version/version"
)
@GetMapping
(
"/version"
)
...
...
src/main/resources/logback.xml
View file @
638aa19
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<contextName>
iClear-api
</contextName>
<!--定义日志文件的存储地址 勿在 LogBack 的配置中使用相对路径-->
<property
name=
"LOG_HOME"
value=
"/var/fedex/dxpweb/weblogic/api/log/"
/>
<appender
name=
"CONSOLE"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<encoder
class=
"ch.qos.logback.core.encoder.LayoutWrappingEncoder"
>
<layout
class=
"ch.qos.logback.classic.PatternLayout"
>
...
...
@@ -15,9 +16,9 @@
<appender
name=
"FILE"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<prudent>
false
</prudent>
<append>
true
</append>
<file>
E:/api/logs
/iClear-api.log
</file>
<file>
${LOG_HOME}
/iClear-api.log
</file>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"
>
<fileNamePattern>
E:/api/logs
/iClear-api-%d{yyyy-MM-dd}.%i.log
</fileNamePattern>
<fileNamePattern>
${LOG_HOME}
/iClear-api-%d{yyyy-MM-dd}.%i.log
</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy
class=
"ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"
>
<maxFileSize>
500MB
</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
...
...
@@ -28,7 +29,6 @@
<pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%thread{0}] %c{0} - %msg%n
</pattern>
<charset>
utf-8
</charset>
</encoder>
</appender>
<logger
name=
"io.lettuce.core"
level=
"ERROR"
/>
...
...
@@ -47,6 +47,4 @@
<appender-ref
ref=
"FILE"
/>
</root>
</springProfile>
</configuration>
...
...
Please
register
or
login
to post a comment