Showing
3 changed files
with
5 additions
and
7 deletions
No preview for this file type
| ... | @@ -23,7 +23,7 @@ import java.util.Date; | ... | @@ -23,7 +23,7 @@ import java.util.Date; |
| 23 | @Slf4j | 23 | @Slf4j |
| 24 | public class VersionInterface { | 24 | public class VersionInterface { |
| 25 | //当前版本号 | 25 | //当前版本号 |
| 26 | - final String VERSION = "1.4"; | 26 | + final String VERSION = "1.5"; |
| 27 | 27 | ||
| 28 | @ApiOperation(value = "获取当前API版本", httpMethod = "GET", notes = "ex: http://192.168.1.71:8080/version/version") | 28 | @ApiOperation(value = "获取当前API版本", httpMethod = "GET", notes = "ex: http://192.168.1.71:8080/version/version") |
| 29 | @GetMapping("/version") | 29 | @GetMapping("/version") | ... | ... |
| 1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <configuration> | 2 | <configuration> |
| 3 | <contextName>iClear-api</contextName> | 3 | <contextName>iClear-api</contextName> |
| 4 | - | 4 | + <!--定义日志文件的存储地址 勿在 LogBack 的配置中使用相对路径--> |
| 5 | + <property name="LOG_HOME" value="/var/fedex/dxpweb/weblogic/api/log/"/> | ||
| 5 | <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> | 6 | <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> |
| 6 | <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder"> | 7 | <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder"> |
| 7 | <layout class="ch.qos.logback.classic.PatternLayout"> | 8 | <layout class="ch.qos.logback.classic.PatternLayout"> |
| ... | @@ -15,9 +16,9 @@ | ... | @@ -15,9 +16,9 @@ |
| 15 | <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> | 16 | <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 16 | <prudent>false</prudent> | 17 | <prudent>false</prudent> |
| 17 | <append>true</append> | 18 | <append>true</append> |
| 18 | - <file>E:/api/logs/iClear-api.log</file> | 19 | + <file>${LOG_HOME}/iClear-api.log</file> |
| 19 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | 20 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 20 | - <fileNamePattern>E:/api/logs/iClear-api-%d{yyyy-MM-dd}.%i.log</fileNamePattern> | 21 | + <fileNamePattern>${LOG_HOME}/iClear-api-%d{yyyy-MM-dd}.%i.log</fileNamePattern> |
| 21 | <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> | 22 | <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> |
| 22 | <maxFileSize>500MB</maxFileSize> | 23 | <maxFileSize>500MB</maxFileSize> |
| 23 | </timeBasedFileNamingAndTriggeringPolicy> | 24 | </timeBasedFileNamingAndTriggeringPolicy> |
| ... | @@ -28,7 +29,6 @@ | ... | @@ -28,7 +29,6 @@ |
| 28 | <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%thread{0}] %c{0} - %msg%n</pattern> | 29 | <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%thread{0}] %c{0} - %msg%n</pattern> |
| 29 | <charset>utf-8</charset> | 30 | <charset>utf-8</charset> |
| 30 | </encoder> | 31 | </encoder> |
| 31 | - | ||
| 32 | </appender> | 32 | </appender> |
| 33 | 33 | ||
| 34 | <logger name="io.lettuce.core" level="ERROR" /> | 34 | <logger name="io.lettuce.core" level="ERROR" /> |
| ... | @@ -47,6 +47,4 @@ | ... | @@ -47,6 +47,4 @@ |
| 47 | <appender-ref ref="FILE"/> | 47 | <appender-ref ref="FILE"/> |
| 48 | </root> | 48 | </root> |
| 49 | </springProfile> | 49 | </springProfile> |
| 50 | - | ||
| 51 | - | ||
| 52 | </configuration> | 50 | </configuration> | ... | ... |
-
Please register or login to post a comment