Showing
38 changed files
with
1846 additions
and
5 deletions
| ... | @@ -2,7 +2,6 @@ HELP.md | ... | @@ -2,7 +2,6 @@ HELP.md |
| 2 | target/ | 2 | target/ |
| 3 | node_modules/ | 3 | node_modules/ |
| 4 | dist/ | 4 | dist/ |
| 5 | -dist_*/ | ||
| 6 | !.mvn/wrapper/maven-wrapper.jar | 5 | !.mvn/wrapper/maven-wrapper.jar |
| 7 | !**/src/main/**/target/ | 6 | !**/src/main/**/target/ |
| 8 | !**/src/test/**/target/ | 7 | !**/src/test/**/target/ |
| ... | @@ -39,3 +38,4 @@ build/ | ... | @@ -39,3 +38,4 @@ build/ |
| 39 | /out/ | 38 | /out/ |
| 40 | 39 | ||
| 41 | package-lock.json | 40 | package-lock.json |
| 41 | +package | ... | ... |
| 1 | +spring: | ||
| 2 | + datasource: | ||
| 3 | + url: jdbc:oracle:thin:@192.168.1.250:1521:orcl | ||
| 4 | + username: icleartw | ||
| 5 | + password: icleartw | ||
| 6 | + driver-class-name: oracle.jdbc.OracleDriver | ||
| 7 | + profiles: | ||
| 8 | + #系统环境 | ||
| 9 | + env: dev | ||
| 10 | + | ||
| 11 | + | ||
| 12 | +export: | ||
| 13 | + jwt: | ||
| 14 | + securityKey: C*F-JaNdRgUkXn2r5u8x/A?D(G+KbPeShVmYq3s6v9y$B&E)H@McQfTjWnZr4u7w | ||
| 15 | + urlWhiteList: | ||
| 16 | + - /icleartw/auth | ||
| 17 | + - /icleartw/monitor/ok | ||
| 18 | + - /icleartw/sysUser/logout | ||
| 19 | + - /icleartw/swagger-resources | ||
| 20 | + - /icleartw/webjars | ||
| 21 | + uriWhiteList: | ||
| 22 | + - /icleartw/swagger-ui.html | ||
| 23 | + - /icleartw/swagger-ui/* | ||
| 24 | + - /icleartw/v2/api-docs | ||
| 25 | + - /icleartw/login.html | ||
| 26 | + expire_1H: 7200 | ||
| 27 | + expire_1D: 604800 | ||
| 28 | + mail: | ||
| 29 | + smtp: | ||
| 30 | + host: smtp.qiye.aliyun.com | ||
| 31 | + port: 25 | ||
| 32 | + needauth: true | ||
| 33 | + proxy: | ||
| 34 | + startFlag: false | ||
| 35 | + host: sin-proxy.apac.fedex.com | ||
| 36 | + port: 3128 | ||
| 37 | + mailAccountFlag: true | ||
| 38 | + mailgroup: | ||
| 39 | + declare: { from: 'kexin.zhou@erry.com',password: 'Zhou1234',to: 'kexin.zhou@erry.com',cc: 'kexin.zhou@erry.com' } | ||
| 40 | + resetpwd: { from: 'tao.mo@erry.com',password: 'xiaozhen!1'} | ||
| 41 | +# propertyPath: | ||
| 42 | +# redis: /opt/fedex/exporttw/redis/export-redis.properties | ||
| 43 | + language: zh_TW | ||
| 44 | + emailActiveTime: 60 | ||
| 45 | + | ||
| 46 | +upload: | ||
| 47 | + path: | ||
| 48 | + declare: E:/var/fedex/exportTw/upload/declareFile | ||
| 49 | + image: E:/var/fedex/exportTw/upload/brandImage | ||
| 50 | + | ||
| 51 | +url: | ||
| 52 | + loginIndex: http://47.103.140.98:8086/icleartw | ||
| 53 | + twIdx: http://47.103.140.98/IcTw/ | ||
| 54 | + twIdxImg: https://declarationuat.fedex.com.cn/Exp/manager-server/ | ||
| 55 | + | ||
| 56 | +#fcl | ||
| 57 | +fcl: | ||
| 58 | + login: | ||
| 59 | + url: http://exportdeclarationuat-tw.dmz.apac.fedex.com/icleartw/auth/wlgnLogin | ||
| 60 | + redjrectLogin: https://exportdeclarationuat-tw.dmz.apac.fedex.com/IcTw/#/redjrectLogin | ||
| 61 | + twidx: | ||
| 62 | + url: http://exportdeclarationuat-tw.apac.fedex.com | ||
| 63 | + interface: | ||
| 64 | + logurl: https://www.fedex.com/secure-login/zh-tw/#/login-credentials?redirectUrl=http://exportdeclarationuat-tw.dmz.apac.fedex.com/icleartw/auth/wlgnForward | ||
| 65 | + fedex_api_address: https://api.fedex.com | ||
| 66 | + proxy_url: cn2-proxy.apac.fedex.com:3128 | ||
| 67 | + token: | ||
| 68 | + url: /auth/oauth/v2/token | ||
| 69 | + grant_type : client_credentials | ||
| 70 | + client_id: l7c13f958213e04d1280f807789bd783a3 | ||
| 71 | + client_secret: 3d43932198b6467a8e20d024bfa82e1c | ||
| 72 | + scope: oob | ||
| 73 | + account: | ||
| 74 | + url: /user/v2/accounts | ||
| 75 | + userinfo: | ||
| 76 | + url: /user/v2/users/userinfo | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +spring: | ||
| 2 | + datasource: | ||
| 3 | + jndi-name: jdbc/icleartwDS | ||
| 4 | + profiles: | ||
| 5 | + #系统环境 | ||
| 6 | + env: prod | ||
| 7 | + | ||
| 8 | +export: | ||
| 9 | + jwt: | ||
| 10 | + securityKey: C*F-JaNdRgUkXn2r5u8x/A?D(G+KbPeShVmYq3s6v9y$B&E)H@McQfTjWnZr4u7w | ||
| 11 | + urlWhiteList: | ||
| 12 | + - /icleartw/auth | ||
| 13 | + - /icleartw/monitor/ok | ||
| 14 | + - /icleartw/sysUser/logout | ||
| 15 | + - /icleartw/swagger-resources | ||
| 16 | + - /icleartw/webjars | ||
| 17 | + uriWhiteList: | ||
| 18 | + - /icleartw/swagger-ui.html | ||
| 19 | + - /icleartw/swagger-ui/* | ||
| 20 | + - /icleartw/v2/api-docs | ||
| 21 | + - /icleartw/login.html | ||
| 22 | + expire_1H: 7200 | ||
| 23 | + expire_1D: 604800 | ||
| 24 | + mail: | ||
| 25 | + smtp: | ||
| 26 | + host: mapper.gslb.fedex.com | ||
| 27 | + port: 25 | ||
| 28 | + needauth: true | ||
| 29 | + proxy: | ||
| 30 | + startFlag: false | ||
| 31 | + host: sg2-proxy.apac.fedex.com | ||
| 32 | + port: 3128 | ||
| 33 | + mailAccountFlag: false | ||
| 34 | +# propertyPath: | ||
| 35 | +# redis: /opt/fedex/exporttw/redis/export-redis.properties | ||
| 36 | + language: zh_TW | ||
| 37 | + emailActiveTime: 60 | ||
| 38 | + | ||
| 39 | +upload: | ||
| 40 | + path: | ||
| 41 | + declare: /var/share/icleartw/upload/declareFile | ||
| 42 | + image: /var/share/icleartw/upload/brandImage | ||
| 43 | + | ||
| 44 | +url: | ||
| 45 | + loginIndex: https://exportdeclaration-tw.apac.fedex.com/IcTw/ | ||
| 46 | + twIdx: https://exportdeclaration-tw.apac.fedex.com/IcTw/ | ||
| 47 | + twIdxImg: https://declaration.fedex.com.cn/Exp/manager-server/ | ||
| 48 | + | ||
| 49 | +#fcl | ||
| 50 | +fcl: | ||
| 51 | + login: | ||
| 52 | + url: https://exportdeclaration-tw.apac.fedex.com/icleartw/auth/wlgnLogin | ||
| 53 | + redjrectLogin: https://exportdeclaration-tw.apac.fedex.com/IcTw/#/redjrectLogin | ||
| 54 | + twidx: | ||
| 55 | + url: https://exportdeclaration-tw.apac.fedex.com | ||
| 56 | + interface: | ||
| 57 | + logurl: https://www.fedex.com/secure-login/zh-tw/#/login-credentials?redirectUrl=https://exportdeclaration-tw.apac.fedex.com/icleartw/auth/wlgnForward | ||
| 58 | + fedex_api_address: https://api.fedex.com | ||
| 59 | + proxy_url: cn2-proxy.apac.fedex.com:3128 | ||
| 60 | + token: | ||
| 61 | + url: /auth/oauth/v2/token | ||
| 62 | + grant_type : client_credentials | ||
| 63 | + client_id: l7c13f958213e04d1280f807789bd783a3 | ||
| 64 | + client_secret: 3d43932198b6467a8e20d024bfa82e1c | ||
| 65 | + scope: oob | ||
| 66 | + account: | ||
| 67 | + url: /user/v2/accounts | ||
| 68 | + userinfo: | ||
| 69 | + url: /user/v2/users/userinfo | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +spring: | ||
| 2 | + datasource: | ||
| 3 | + jndi-name: jdbc/icleartwDS | ||
| 4 | + profiles: | ||
| 5 | + #系统环境 | ||
| 6 | + env: test | ||
| 7 | + | ||
| 8 | +export: | ||
| 9 | + jwt: | ||
| 10 | + securityKey: C*F-JaNdRgUkXn2r5u8x/A?D(G+KbPeShVmYq3s6v9y$B&E)H@McQfTjWnZr4u7w | ||
| 11 | + urlWhiteList: | ||
| 12 | + - /icleartw/auth | ||
| 13 | + - /icleartw/monitor/ok | ||
| 14 | + - /icleartw/sysUser/logout | ||
| 15 | + - /icleartw/swagger-resources | ||
| 16 | + - /icleartw/webjars | ||
| 17 | + uriWhiteList: | ||
| 18 | + - /icleartw/swagger-ui.html | ||
| 19 | + - /icleartw/swagger-ui/* | ||
| 20 | + - /icleartw/v2/api-docs | ||
| 21 | + - /icleartw/login.html | ||
| 22 | + expire_1H: 7200 | ||
| 23 | + expire_1D: 604800 | ||
| 24 | + mail: | ||
| 25 | + smtp: | ||
| 26 | + host: smtp.qiye.aliyun.com | ||
| 27 | + port: 25 | ||
| 28 | + needauth: true | ||
| 29 | + proxy: | ||
| 30 | + startFlag: false | ||
| 31 | + host: sin-proxy.apac.fedex.com | ||
| 32 | + port: 3128 | ||
| 33 | + mailAccountFlag: true | ||
| 34 | +# propertyPath: | ||
| 35 | +# redis: /opt/fedex/exporttw/redis/export-redis.properties | ||
| 36 | + language: zh_TW | ||
| 37 | + emailActiveTime: 60 | ||
| 38 | + | ||
| 39 | +upload: | ||
| 40 | + path: | ||
| 41 | + declare: /app/Oracle/Middleware/user_projects/domains/base_domain/exportTw/upload/declareFile | ||
| 42 | + image: /app/Oracle/Middleware/user_projects/domains/base_domain/exportTw/upload/brandImage | ||
| 43 | + | ||
| 44 | +url: | ||
| 45 | + loginIndex: http://47.103.140.98:8086/icleartw | ||
| 46 | + twIdx: http://47.103.140.98/IcTw/ | ||
| 47 | + twIdxImg: https://declarationuat.fedex.com.cn/Exp/manager-server/ | ||
| 48 | + | ||
| 49 | +#fcl | ||
| 50 | +fcl: | ||
| 51 | + login: | ||
| 52 | + url: http://exportdeclarationuat-tw.dmz.apac.fedex.com/icleartw/auth/wlgnLogin | ||
| 53 | + redjrectLogin: https://exportdeclarationuat-tw.dmz.apac.fedex.com/IcTw/#/redjrectLogin | ||
| 54 | + twidx: | ||
| 55 | + url: http://exportdeclarationuat-tw.apac.fedex.com | ||
| 56 | + interface: | ||
| 57 | + logurl: https://www.fedex.com/secure-login/zh-tw/#/login-credentials?redirectUrl=http://exportdeclarationuat-tw.dmz.apac.fedex.com/icleartw/auth/wlgnForward | ||
| 58 | + fedex_api_address: https://api.fedex.com | ||
| 59 | + proxy_url: cn2-proxy.apac.fedex.com:3128 | ||
| 60 | + token: | ||
| 61 | + url: /auth/oauth/v2/token | ||
| 62 | + grant_type : client_credentials | ||
| 63 | + client_id: l7c13f958213e04d1280f807789bd783a3 | ||
| 64 | + client_secret: 3d43932198b6467a8e20d024bfa82e1c | ||
| 65 | + scope: oob | ||
| 66 | + account: | ||
| 67 | + url: /user/v2/accounts | ||
| 68 | + userinfo: | ||
| 69 | + url: /user/v2/users/userinfo | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +spring: | ||
| 2 | + datasource: | ||
| 3 | + jndi-name: jdbc/icleartwDS | ||
| 4 | + profiles: | ||
| 5 | + #系统环境 | ||
| 6 | + env: uat | ||
| 7 | + | ||
| 8 | +export: | ||
| 9 | + jwt: | ||
| 10 | + securityKey: C*F-JaNdRgUkXn2r5u8x/A?D(G+KbPeShVmYq3s6v9y$B&E)H@McQfTjWnZr4u7w | ||
| 11 | + urlWhiteList: | ||
| 12 | + - /icleartw/auth | ||
| 13 | + - /icleartw/monitor/ok | ||
| 14 | + - /icleartw/sysUser/logout | ||
| 15 | + - /icleartw/swagger-resources | ||
| 16 | + - /icleartw/webjars | ||
| 17 | + uriWhiteList: | ||
| 18 | + - /icleartw/swagger-ui.html | ||
| 19 | + - /icleartw/swagger-ui/* | ||
| 20 | + - /icleartw/v2/api-docs | ||
| 21 | + - /icleartw/login.html | ||
| 22 | + expire_1H: 7200 | ||
| 23 | + expire_1D: 604800 | ||
| 24 | + mail: | ||
| 25 | + smtp: | ||
| 26 | + host: mapper.gslb.fedex.com | ||
| 27 | + port: 25 | ||
| 28 | + needauth: true | ||
| 29 | + proxy: | ||
| 30 | + startFlag: false | ||
| 31 | + host: sg2-proxy.apac.fedex.com | ||
| 32 | + port: 3128 | ||
| 33 | + mailAccountFlag: false | ||
| 34 | +# propertyPath: | ||
| 35 | +# redis: /opt/fedex/exporttw/redis/export-redis.properties | ||
| 36 | + language: zh_TW | ||
| 37 | + emailActiveTime: 60 | ||
| 38 | + | ||
| 39 | +upload: | ||
| 40 | + path: | ||
| 41 | + declare: /var/share/icleartw/upload/declareFile | ||
| 42 | + image: /var/share/icleartw/upload/brandImage | ||
| 43 | + | ||
| 44 | +url: | ||
| 45 | + loginIndex: http://exportdeclarationuat-tw.dmz.apac.fedex.com/icleartw | ||
| 46 | + twIdx: http://exportdeclarationuat-tw.apac.fedex.com/IcTw/ | ||
| 47 | + twIdxImg: https://declarationuat.fedex.com.cn/Exp/manager-server/ | ||
| 48 | + | ||
| 49 | +fcl: | ||
| 50 | + login: | ||
| 51 | + url: http://exportdeclarationuat-tw.apac.fedex.com/icleartw/auth/wlgnLogin | ||
| 52 | + redjrectLogin: https://exportdeclarationuat-tw.dmz.apac.fedex.com/IcTw/#/redjrectLogin | ||
| 53 | + twidx: | ||
| 54 | + url: http://exportdeclarationuat-tw.apac.fedex.com | ||
| 55 | + interface: | ||
| 56 | + logurl: https://www.fedex.com/secure-login/zh-tw/#/login-credentials?redirectUrl=http://exportdeclarationuat-tw.dmz.apac.fedex.com/icleartw/auth/wlgnForward | ||
| 57 | + fedex_api_address: https://api.fedex.com | ||
| 58 | + proxy_url: cn2-proxy.apac.fedex.com:3128 | ||
| 59 | + token: | ||
| 60 | + url: /auth/oauth/v2/token | ||
| 61 | + grant_type : client_credentials | ||
| 62 | + client_id: l7c13f958213e04d1280f807789bd783a3 | ||
| 63 | + client_secret: 3d43932198b6467a8e20d024bfa82e1c | ||
| 64 | + scope: oob | ||
| 65 | + account: | ||
| 66 | + url: /user/v2/accounts | ||
| 67 | + userinfo: | ||
| 68 | + url: /user/v2/users/userinfo | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +server: | ||
| 2 | + port: 8086 | ||
| 3 | + servlet: | ||
| 4 | + context-path: /biz-customer | ||
| 5 | + session: | ||
| 6 | + timeout: 120 | ||
| 7 | +spring: | ||
| 8 | + application: | ||
| 9 | + name: biz-customer | ||
| 10 | + profiles: | ||
| 11 | + active: @activatedProperties@ | ||
| 12 | + jackson: | ||
| 13 | + date-format: yyyy-MM-dd HH:mm:ss | ||
| 14 | + time-zone: GMT+8 | ||
| 15 | + servlet: | ||
| 16 | + multipart: | ||
| 17 | + max-file-size: -1 | ||
| 18 | + max-request-size: -1 | ||
| 19 | + messages: | ||
| 20 | + basename: message | ||
| 21 | + encoding: utf-8 | ||
| 22 | + | ||
| 23 | +mybatis: | ||
| 24 | + mapper-locations: | ||
| 25 | + - classpath*:com/fedex/export/**/mapper/*.xml | ||
| 26 | + - classpath*:com/fedex/export/**/mapper/log/*.xml | ||
| 27 | + configuration: | ||
| 28 | + #开启驼峰与下划线转换 | ||
| 29 | + map-underscore-to-camel-case: true | ||
| 30 | + call-setters-on-nulls: true | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | +<configuration> | ||
| 3 | + <springProfile name="dev,uat,prod"> | ||
| 4 | + <!-- 日志存放路径 --> | ||
| 5 | + <property name="log.path" value="/var/fedex/iclearconnect/weblogic/iclearconnect/export-tw-server" /> | ||
| 6 | + </springProfile> | ||
| 7 | + <springProfile name="test"> | ||
| 8 | + <!-- 日志存放路径 --> | ||
| 9 | + <property name="log.path" value="/app/Oracle/Middleware/user_projects/domains/base_domain/iclearconnect/export-tw-server"></property> | ||
| 10 | + </springProfile> | ||
| 11 | + <!-- 日志输出格式 --> | ||
| 12 | + <property name="log.pattern" | ||
| 13 | + value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" /> | ||
| 14 | + <springProfile name="dev,test,uat"> | ||
| 15 | + <property name="log.maxHistory" value="2"></property> | ||
| 16 | + <property name="log.maxFileSize" value="20MB"></property> | ||
| 17 | + </springProfile> | ||
| 18 | + <springProfile name="prod"> | ||
| 19 | + <property name="log.maxHistory" value="10"></property> | ||
| 20 | + <property name="log.maxFileSize" value="20MB"></property> | ||
| 21 | + </springProfile> | ||
| 22 | + <!-- 控制台输出 --> | ||
| 23 | + <appender name="console" | ||
| 24 | + class="ch.qos.logback.core.ConsoleAppender"> | ||
| 25 | + <encoder> | ||
| 26 | + <pattern>${log.pattern}</pattern> | ||
| 27 | + </encoder> | ||
| 28 | + </appender> | ||
| 29 | + | ||
| 30 | + <!-- 系统日志输出 --> | ||
| 31 | + <appender name="file_debug" | ||
| 32 | + class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
| 33 | + <file>${log.path}/sys-debug.log</file> | ||
| 34 | + <!-- 循环政策:基于时间创建日志文件 --> | ||
| 35 | + <rollingPolicy | ||
| 36 | + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> | ||
| 37 | + <!-- 日志文件名格式 --> | ||
| 38 | + <fileNamePattern>${log.path}/sys-debug.%d{yyyy-MM-dd}.%i.log | ||
| 39 | + </fileNamePattern> | ||
| 40 | + <!-- 日志最大的历史 30天 --> | ||
| 41 | + <maxHistory>${log.maxHistory}</maxHistory> | ||
| 42 | + <maxFileSize>${log.maxFileSize}</maxFileSize> | ||
| 43 | + </rollingPolicy> | ||
| 44 | + <encoder> | ||
| 45 | + <pattern>${log.pattern}</pattern> | ||
| 46 | + </encoder> | ||
| 47 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
| 48 | + <!-- 过滤的级别 --> | ||
| 49 | + <level>DEBUG</level> | ||
| 50 | + <!-- 匹配时的操作:接收(记录) --> | ||
| 51 | + <onMatch>ACCEPT</onMatch> | ||
| 52 | + <!-- 不匹配时的操作:拒绝(不记录) --> | ||
| 53 | + <onMismatch>DENY</onMismatch> | ||
| 54 | + </filter> | ||
| 55 | + </appender> | ||
| 56 | + | ||
| 57 | + <appender name="file_info" | ||
| 58 | + class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
| 59 | + <file>${log.path}/sys-info.log</file> | ||
| 60 | + <!-- 循环政策:基于时间创建日志文件 --> | ||
| 61 | + <rollingPolicy | ||
| 62 | + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> | ||
| 63 | + <!-- 日志文件名格式 --> | ||
| 64 | + <fileNamePattern>${log.path}/sys-info.%d{yyyy-MM-dd}.%i.log | ||
| 65 | + </fileNamePattern> | ||
| 66 | + <!-- 日志最大的历史 30天 --> | ||
| 67 | + <maxHistory>${log.maxHistory}</maxHistory> | ||
| 68 | + <maxFileSize>${log.maxFileSize}</maxFileSize> | ||
| 69 | + </rollingPolicy> | ||
| 70 | + <encoder> | ||
| 71 | + <pattern>${log.pattern}</pattern> | ||
| 72 | + </encoder> | ||
| 73 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
| 74 | + <!-- 过滤的级别 --> | ||
| 75 | + <level>INFO</level> | ||
| 76 | + <!-- 匹配时的操作:接收(记录) --> | ||
| 77 | + <onMatch>ACCEPT</onMatch> | ||
| 78 | + <!-- 不匹配时的操作:拒绝(不记录) --> | ||
| 79 | + <onMismatch>DENY</onMismatch> | ||
| 80 | + </filter> | ||
| 81 | + </appender> | ||
| 82 | + | ||
| 83 | + <appender name="file_error" | ||
| 84 | + class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
| 85 | + <file>${log.path}/sys-error.log</file> | ||
| 86 | + <!-- 循环政策:基于时间创建日志文件 --> | ||
| 87 | + <rollingPolicy | ||
| 88 | + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> | ||
| 89 | + <!-- 日志文件名格式 --> | ||
| 90 | + <fileNamePattern>${log.path}/sys-error.%d{yyyy-MM-dd}.%i.log | ||
| 91 | + </fileNamePattern> | ||
| 92 | + <!-- 日志最大的历史 30天 --> | ||
| 93 | + <maxHistory>${log.maxHistory}</maxHistory> | ||
| 94 | + <maxFileSize>${log.maxFileSize}</maxFileSize> | ||
| 95 | + </rollingPolicy> | ||
| 96 | + <encoder> | ||
| 97 | + <pattern>${log.pattern}</pattern> | ||
| 98 | + </encoder> | ||
| 99 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
| 100 | + <!-- 过滤的级别 --> | ||
| 101 | + <level>ERROR</level> | ||
| 102 | + <!-- 匹配时的操作:接收(记录) --> | ||
| 103 | + <onMatch>ACCEPT</onMatch> | ||
| 104 | + <!-- 不匹配时的操作:拒绝(不记录) --> | ||
| 105 | + <onMismatch>DENY</onMismatch> | ||
| 106 | + </filter> | ||
| 107 | + </appender> | ||
| 108 | + <springProfile name="dev"> | ||
| 109 | + <root level="info"> | ||
| 110 | + <appender-ref ref="console"></appender-ref> | ||
| 111 | + </root> | ||
| 112 | + <logger name="com.fedex.export.repository.dao" level="debug"> | ||
| 113 | + <appender-ref ref="file_debug"></appender-ref> | ||
| 114 | + </logger> | ||
| 115 | + <logger name="com.fedex.export.repository.mapper" level="debug"> | ||
| 116 | + <appender-ref ref="file_debug"></appender-ref> | ||
| 117 | + </logger> | ||
| 118 | + </springProfile> | ||
| 119 | + <springProfile name="test"> | ||
| 120 | + <root level="debug"> | ||
| 121 | + <appender-ref ref="file_info"></appender-ref> | ||
| 122 | + <appender-ref ref="file_error"></appender-ref> | ||
| 123 | + </root> | ||
| 124 | + <logger name="com.fedex.export.repository.dao" level="debug"> | ||
| 125 | + <appender-ref ref="file_debug"></appender-ref> | ||
| 126 | + </logger> | ||
| 127 | + <logger name="com.fedex.export.repository.mapper" level="debug"> | ||
| 128 | + <appender-ref ref="file_debug"></appender-ref> | ||
| 129 | + </logger> | ||
| 130 | + </springProfile> | ||
| 131 | + <springProfile name="uat,prod"> | ||
| 132 | + <root level="info"> | ||
| 133 | + <appender-ref ref="file_info"></appender-ref> | ||
| 134 | + <appender-ref ref="file_error"></appender-ref> | ||
| 135 | + </root> | ||
| 136 | + </springProfile> | ||
| 137 | +</configuration> |
File mode changed
File mode changed
| ... | @@ -4,7 +4,7 @@ | ... | @@ -4,7 +4,7 @@ |
| 4 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | 4 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 5 | xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-web-app | 5 | xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-web-app |
| 6 | http://xmlns.oracle.com/weblogic/weblogic-web-app/1.4/weblogic-web-app.xsd"> | 6 | http://xmlns.oracle.com/weblogic/weblogic-web-app/1.4/weblogic-web-app.xsd"> |
| 7 | - <wls:context-root>/iclearconnect</wls:context-root> | 7 | + <wls:context-root>/biz-customer</wls:context-root> |
| 8 | <wls:library-ref> | 8 | <wls:library-ref> |
| 9 | <library-name>lib4iClearConnect</library-name> | 9 | <library-name>lib4iClearConnect</library-name> |
| 10 | <specification-version>1.0</specification-version> | 10 | <specification-version>1.0</specification-version> | ... | ... |
server/common-dao/pom.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| 5 | + <modelVersion>4.0.0</modelVersion> | ||
| 6 | + | ||
| 7 | + <groupId>com.fedex.connect</groupId> | ||
| 8 | + <artifactId>common-dao</artifactId> | ||
| 9 | + <version>1.0.0</version> | ||
| 10 | + | ||
| 11 | + | ||
| 12 | +</project> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
This diff is collapsed. Click to expand it.
| 1 | +spring: | ||
| 2 | + datasource: | ||
| 3 | + url: jdbc:oracle:thin:@192.168.1.250:1521:orcl | ||
| 4 | + username: icleartw | ||
| 5 | + password: icleartw | ||
| 6 | + driver-class-name: oracle.jdbc.OracleDriver | ||
| 7 | + profiles: | ||
| 8 | + #系统环境 | ||
| 9 | + env: dev | ||
| 10 | + #============== kafka =================== | ||
| 11 | + kafka: | ||
| 12 | + # 指定kafka server的地址,集群配多个,中间,逗号隔开 | ||
| 13 | + bootstrap-servers: 47.103.140.98:9092 | ||
| 14 | + #验证文件地址 | ||
| 15 | + iclear-kerberos-jaasPath: /opt/fedex/icleartw/conf/app_3537251_iclear_jaas.conf | ||
| 16 | + iclear-kerberos-krb5: /opt/fedex/icleartw/conf/krb5.conf | ||
| 17 | + #=============== provider ======================= | ||
| 18 | + producer: | ||
| 19 | + #可以设置的值为:all, -1, 0, 1 | ||
| 20 | + acks: -1 | ||
| 21 | + # 当retris为0时,produce不会重复。retirs重发,此时repli节点完全成为leader节点,不会产生消息丢失。 | ||
| 22 | + retries: 3 | ||
| 23 | + # 每次批量发送消息的数量,produce积累到一定数据,一次发送 | ||
| 24 | + batch-size: 323840 | ||
| 25 | + properties: | ||
| 26 | + linger: | ||
| 27 | + # 如果kafka迟迟不发送消息(这里指的是消息没堆积到指定数量),那么过了这个时间(单位:毫秒)开始发送 | ||
| 28 | + ms: 10 | ||
| 29 | + max: | ||
| 30 | + block: | ||
| 31 | + # 控制block的时长,当buffer空间不够或者metadata丢失时产生block | ||
| 32 | + ms: 3000 | ||
| 33 | + # produce积累数据一次发送,缓存大小达到buffer.memory就发送数据 | ||
| 34 | + buffer-memory: 33554432 | ||
| 35 | + #=============== consumer ======================= | ||
| 36 | + consumer: | ||
| 37 | + #topic-name | ||
| 38 | + topic-name: fdx.apac.cn.shipment.import.cdm.iclear | ||
| 39 | + # 指定默认消费者group id --> 由于在kafka中,同一组中的consumer不会读取到同一个消息,依靠groud.id设置组名 | ||
| 40 | + group-id: imp-exp-tw-dev | ||
| 41 | + # smallest和largest才有效,如果smallest重新0开始读取,如果是largest从logfile的offset读取。一般情况下我们都是设置smallest | ||
| 42 | + auto-offset-reset: earliest | ||
| 43 | + # enable.auto.commit:true --> 设置自动提交offset | ||
| 44 | + enable-auto-commit: false | ||
| 45 | + #如果'enable.auto.commit'为true,则消费者偏移自动提交给Kafka的频率(以毫秒为单位),默认值为5000。 | ||
| 46 | + auto-commit-interval: 1000 | ||
| 47 | + #每次kafka消费量 | ||
| 48 | + max-poll-records: 1000 | ||
| 49 | + #kafka消费线程数 | ||
| 50 | + spring-kafka-threadNum: 10 | ||
| 51 | +export: | ||
| 52 | + jwt: | ||
| 53 | + securityKey: C*F-JaNdRgUkXn2r5u8x/A?D(G+KbPeShVmYq3s6v9y$B&E)H@McQfTjWnZr4u7w | ||
| 54 | + urlWhiteList: | ||
| 55 | + - /icleartw/auth | ||
| 56 | + - /icleartw/sysUser/logout | ||
| 57 | + - /icleartw/swagger-resources | ||
| 58 | + - /icleartw/webjars | ||
| 59 | + uriWhiteList: | ||
| 60 | + - /icleartw/swagger-ui.html | ||
| 61 | + - /icleartw/swagger-ui/* | ||
| 62 | + - /icleartw/v2/api-docs | ||
| 63 | + - /icleartw/login.html | ||
| 64 | + expire_1H: 7200 | ||
| 65 | + expire_1D: 604800 | ||
| 66 | + mail: | ||
| 67 | + smtp: | ||
| 68 | + host: smtp.qiye.aliyun.com | ||
| 69 | + port: 25 | ||
| 70 | + needauth: true | ||
| 71 | + proxy: | ||
| 72 | + startFlag: false | ||
| 73 | + host: sin-proxy.apac.fedex.com | ||
| 74 | + port: 3128 | ||
| 75 | + mailAccountFlag: true | ||
| 76 | + mailgroup: | ||
| 77 | + declare: { from: 'kexin.zhou@erry.com',password: 'Zhou1234',to: 'kexin.zhou@erry.com',cc: 'kexin.zhou@erry.com' } | ||
| 78 | + resetpwd: { from: 'tao.mo@erry.com',password: 'xiaozhen!1'} | ||
| 79 | +# propertyPath: | ||
| 80 | +# redis: /opt/fedex/exporttw/redis/export-redis.properties | ||
| 81 | + language: zh_TW | ||
| 82 | + emailActiveTime: 60 |
| 1 | +spring: | ||
| 2 | + datasource: | ||
| 3 | + jndi-name: jdbc/icleartwDS | ||
| 4 | + profiles: | ||
| 5 | + #系统环境 | ||
| 6 | + env: prod | ||
| 7 | + #============== kafka =================== | ||
| 8 | + kafka: | ||
| 9 | + # 指定kafka server的地址,集群配多个,中间,逗号隔开 | ||
| 10 | + bootstrap-servers: papc0014.cndczmd.apac.fedex.com:52094,papc0015.cndczmd.apac.fedex.com:52094,papc0016.cndczmd.apac.fedex.com:52094,papc0017.cndczmd.apac.fedex.com:52094,papc0018.cndczmd.apac.fedex.com:52094,papc0019.cndczmd.apac.fedex.com:52094 | ||
| 11 | + #验证文件地址 | ||
| 12 | + iclear-kerberos-jaasPath: /opt/fedex/icleartw/conf/app_3537251_iclear_jaas.conf | ||
| 13 | + iclear-kerberos-krb5: /opt/fedex/icleartw/conf/krb5.conf | ||
| 14 | + #=============== provider ======================= | ||
| 15 | + producer: | ||
| 16 | + #可以设置的值为:all, -1, 0, 1 | ||
| 17 | + acks: -1 | ||
| 18 | + # 当retris为0时,produce不会重复。retirs重发,此时repli节点完全成为leader节点,不会产生消息丢失。 | ||
| 19 | + retries: 3 | ||
| 20 | + # 每次批量发送消息的数量,produce积累到一定数据,一次发送 | ||
| 21 | + batch-size: 323840 | ||
| 22 | + properties: | ||
| 23 | + linger: | ||
| 24 | + # 如果kafka迟迟不发送消息(这里指的是消息没堆积到指定数量),那么过了这个时间(单位:毫秒)开始发送 | ||
| 25 | + ms: 10 | ||
| 26 | + max: | ||
| 27 | + block: | ||
| 28 | + # 控制block的时长,当buffer空间不够或者metadata丢失时产生block | ||
| 29 | + ms: 3000 | ||
| 30 | + # produce积累数据一次发送,缓存大小达到buffer.memory就发送数据 | ||
| 31 | + buffer-memory: 33554432 | ||
| 32 | + #=============== consumer ======================= | ||
| 33 | + consumer: | ||
| 34 | + #topic-name | ||
| 35 | + topic-name: fdx.apac.cn.shipment.import.cdm.iclear | ||
| 36 | + # 指定默认消费者group id --> 由于在kafka中,同一组中的consumer不会读取到同一个消息,依靠groud.id设置组名 | ||
| 37 | + group-id: imp-exp-tw-prod | ||
| 38 | + # smallest和largest才有效,如果smallest重新0开始读取,如果是largest从logfile的offset读取。一般情况下我们都是设置smallest | ||
| 39 | + auto-offset-reset: earliest | ||
| 40 | + # enable.auto.commit:true --> 设置自动提交offset | ||
| 41 | + enable-auto-commit: false | ||
| 42 | + #如果'enable.auto.commit'为true,则消费者偏移自动提交给Kafka的频率(以毫秒为单位),默认值为5000。 | ||
| 43 | + auto-commit-interval: 1000 | ||
| 44 | + #每次kafka消费量 | ||
| 45 | + max-poll-records: 1000 | ||
| 46 | + #kafka消费线程数 | ||
| 47 | + spring-kafka-threadNum: 10 | ||
| 48 | + | ||
| 49 | +export: | ||
| 50 | + jwt: | ||
| 51 | + securityKey: C*F-JaNdRgUkXn2r5u8x/A?D(G+KbPeShVmYq3s6v9y$B&E)H@McQfTjWnZr4u7w | ||
| 52 | + urlWhiteList: | ||
| 53 | + - /icleartw/auth | ||
| 54 | + - /icleartw/sysUser/logout | ||
| 55 | + - /icleartw/swagger-resources | ||
| 56 | + - /icleartw/webjars | ||
| 57 | + uriWhiteList: | ||
| 58 | + - /icleartw/swagger-ui.html | ||
| 59 | + - /icleartw/swagger-ui/* | ||
| 60 | + - /icleartw/v2/api-docs | ||
| 61 | + - /icleartw/login.html | ||
| 62 | + expire_1H: 7200 | ||
| 63 | + expire_1D: 604800 | ||
| 64 | + mail: | ||
| 65 | + smtp: | ||
| 66 | + host: mapper.gslb.fedex.com | ||
| 67 | + port: 25 | ||
| 68 | + needauth: true | ||
| 69 | + proxy: | ||
| 70 | + startFlag: false | ||
| 71 | + host: sg2-proxy.apac.fedex.com | ||
| 72 | + port: 3128 | ||
| 73 | + mailAccountFlag: false | ||
| 74 | +# propertyPath: | ||
| 75 | +# redis: /opt/fedex/exporttw/redis/export-redis.properties | ||
| 76 | + language: zh_TW | ||
| 77 | + emailActiveTime: 60 |
| 1 | +spring: | ||
| 2 | + datasource: | ||
| 3 | + jndi-name: jdbc/icleartwDS | ||
| 4 | + profiles: | ||
| 5 | + #系统环境 | ||
| 6 | + env: test | ||
| 7 | + #============== kafka =================== | ||
| 8 | + kafka: | ||
| 9 | + # 指定kafka server的地址,集群配多个,中间,逗号隔开 | ||
| 10 | + bootstrap-servers: 47.103.140.98:9092 | ||
| 11 | + #验证文件地址 | ||
| 12 | + iclear-kerberos-jaasPath: /opt/fedex/icleartw/conf/app_3537251_iclear_jaas.conf | ||
| 13 | + iclear-kerberos-krb5: /opt/fedex/icleartw/conf/krb5.conf | ||
| 14 | + #=============== provider ======================= | ||
| 15 | + producer: | ||
| 16 | + #可以设置的值为:all, -1, 0, 1 | ||
| 17 | + acks: -1 | ||
| 18 | + # 当retris为0时,produce不会重复。retirs重发,此时repli节点完全成为leader节点,不会产生消息丢失。 | ||
| 19 | + retries: 3 | ||
| 20 | + # 每次批量发送消息的数量,produce积累到一定数据,一次发送 | ||
| 21 | + batch-size: 323840 | ||
| 22 | + properties: | ||
| 23 | + linger: | ||
| 24 | + # 如果kafka迟迟不发送消息(这里指的是消息没堆积到指定数量),那么过了这个时间(单位:毫秒)开始发送 | ||
| 25 | + ms: 10 | ||
| 26 | + max: | ||
| 27 | + block: | ||
| 28 | + # 控制block的时长,当buffer空间不够或者metadata丢失时产生block | ||
| 29 | + ms: 3000 | ||
| 30 | + # produce积累数据一次发送,缓存大小达到buffer.memory就发送数据 | ||
| 31 | + buffer-memory: 33554432 | ||
| 32 | + #=============== consumer ======================= | ||
| 33 | + consumer: | ||
| 34 | + #topic-name | ||
| 35 | + topic-name: fdx.apac.cn.shipment.import.cdm.iclear | ||
| 36 | + # 指定默认消费者group id --> 由于在kafka中,同一组中的consumer不会读取到同一个消息,依靠groud.id设置组名 | ||
| 37 | + group-id: imp-exp-tw-test | ||
| 38 | + # smallest和largest才有效,如果smallest重新0开始读取,如果是largest从logfile的offset读取。一般情况下我们都是设置smallest | ||
| 39 | + auto-offset-reset: earliest | ||
| 40 | + # enable.auto.commit:true --> 设置自动提交offset | ||
| 41 | + enable-auto-commit: false | ||
| 42 | + #如果'enable.auto.commit'为true,则消费者偏移自动提交给Kafka的频率(以毫秒为单位),默认值为5000。 | ||
| 43 | + auto-commit-interval: 1000 | ||
| 44 | + #每次kafka消费量 | ||
| 45 | + max-poll-records: 1000 | ||
| 46 | + #kafka消费线程数 | ||
| 47 | + spring-kafka-threadNum: 10 | ||
| 48 | + | ||
| 49 | +export: | ||
| 50 | + jwt: | ||
| 51 | + securityKey: C*F-JaNdRgUkXn2r5u8x/A?D(G+KbPeShVmYq3s6v9y$B&E)H@McQfTjWnZr4u7w | ||
| 52 | + urlWhiteList: | ||
| 53 | + - /icleartw/auth | ||
| 54 | + - /icleartw/sysUser/logout | ||
| 55 | + - /icleartw/swagger-resources | ||
| 56 | + - /icleartw/webjars | ||
| 57 | + uriWhiteList: | ||
| 58 | + - /icleartw/swagger-ui.html | ||
| 59 | + - /icleartw/swagger-ui/* | ||
| 60 | + - /icleartw/v2/api-docs | ||
| 61 | + - /icleartw/login.html | ||
| 62 | + expire_1H: 7200 | ||
| 63 | + expire_1D: 604800 | ||
| 64 | + mail: | ||
| 65 | + smtp: | ||
| 66 | + host: smtp.qiye.aliyun.com | ||
| 67 | + port: 25 | ||
| 68 | + needauth: true | ||
| 69 | + proxy: | ||
| 70 | + startFlag: false | ||
| 71 | + host: sin-proxy.apac.fedex.com | ||
| 72 | + port: 3128 | ||
| 73 | + mailAccountFlag: true | ||
| 74 | +# propertyPath: | ||
| 75 | +# redis: /opt/fedex/exporttw/redis/export-redis.properties | ||
| 76 | + language: zh_TW | ||
| 77 | + emailActiveTime: 60 | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +spring: | ||
| 2 | + datasource: | ||
| 3 | + jndi-name: jdbc/icleartwDS | ||
| 4 | + profiles: | ||
| 5 | + #系统环境 | ||
| 6 | + env: uat | ||
| 7 | + #============== kafka =================== | ||
| 8 | + kafka: | ||
| 9 | + # 指定kafka server的地址,集群配多个,中间,逗号隔开 | ||
| 10 | + bootstrap-servers: uapc0004.cndczmd.apac.fedex.com:52094,uapc0005.cndczmd.apac.fedex.com:52094,uapc0006.cndczmd.apac.fedex.com:52094,uapc0007.cndczmd.apac.fedex.com:52094,uapc0008.cndczmd.apac.fedex.com:52094,uapc0009.cndczmd.apac.fedex.com:52094 | ||
| 11 | + #验证文件地址 | ||
| 12 | + iclear-kerberos-jaasPath: /opt/fedex/icleartw/conf/app_3537251_iclear_jaas.conf | ||
| 13 | + iclear-kerberos-krb5: /opt/fedex/icleartw/conf/krb5.conf | ||
| 14 | + #=============== provider ======================= | ||
| 15 | + producer: | ||
| 16 | + #可以设置的值为:all, -1, 0, 1 | ||
| 17 | + acks: -1 | ||
| 18 | + # 当retris为0时,produce不会重复。retirs重发,此时repli节点完全成为leader节点,不会产生消息丢失。 | ||
| 19 | + retries: 3 | ||
| 20 | + # 每次批量发送消息的数量,produce积累到一定数据,一次发送 | ||
| 21 | + batch-size: 323840 | ||
| 22 | + properties: | ||
| 23 | + linger: | ||
| 24 | + # 如果kafka迟迟不发送消息(这里指的是消息没堆积到指定数量),那么过了这个时间(单位:毫秒)开始发送 | ||
| 25 | + ms: 10 | ||
| 26 | + max: | ||
| 27 | + block: | ||
| 28 | + # 控制block的时长,当buffer空间不够或者metadata丢失时产生block | ||
| 29 | + ms: 3000 | ||
| 30 | + # produce积累数据一次发送,缓存大小达到buffer.memory就发送数据 | ||
| 31 | + buffer-memory: 33554432 | ||
| 32 | + #=============== consumer ======================= | ||
| 33 | + consumer: | ||
| 34 | + #topic-name | ||
| 35 | + topic-name: fdx.apac.cn.shipment.import.cdm.iclear | ||
| 36 | + # 指定默认消费者group id --> 由于在kafka中,同一组中的consumer不会读取到同一个消息,依靠groud.id设置组名 | ||
| 37 | + group-id: imp-exp-tw-uat | ||
| 38 | + # smallest和largest才有效,如果smallest重新0开始读取,如果是largest从logfile的offset读取。一般情况下我们都是设置smallest | ||
| 39 | + auto-offset-reset: earliest | ||
| 40 | + # enable.auto.commit:true --> 设置自动提交offset | ||
| 41 | + enable-auto-commit: false | ||
| 42 | + #如果'enable.auto.commit'为true,则消费者偏移自动提交给Kafka的频率(以毫秒为单位),默认值为5000。 | ||
| 43 | + auto-commit-interval: 1000 | ||
| 44 | + #每次kafka消费量 | ||
| 45 | + max-poll-records: 1000 | ||
| 46 | + #kafka消费线程数 | ||
| 47 | + spring-kafka-threadNum: 10 | ||
| 48 | + | ||
| 49 | +export: | ||
| 50 | + jwt: | ||
| 51 | + securityKey: C*F-JaNdRgUkXn2r5u8x/A?D(G+KbPeShVmYq3s6v9y$B&E)H@McQfTjWnZr4u7w | ||
| 52 | + urlWhiteList: | ||
| 53 | + - /icleartw/auth | ||
| 54 | + - /icleartw/sysUser/logout | ||
| 55 | + - /icleartw/swagger-resources | ||
| 56 | + - /icleartw/webjars | ||
| 57 | + uriWhiteList: | ||
| 58 | + - /icleartw/swagger-ui.html | ||
| 59 | + - /icleartw/swagger-ui/* | ||
| 60 | + - /icleartw/v2/api-docs | ||
| 61 | + - /icleartw/login.html | ||
| 62 | + expire_1H: 7200 | ||
| 63 | + expire_1D: 604800 | ||
| 64 | + mail: | ||
| 65 | + smtp: | ||
| 66 | + host: mapper.gslb.fedex.com | ||
| 67 | + port: 25 | ||
| 68 | + needauth: true | ||
| 69 | + proxy: | ||
| 70 | + startFlag: false | ||
| 71 | + host: sg2-proxy.apac.fedex.com | ||
| 72 | + port: 3128 | ||
| 73 | + mailAccountFlag: false | ||
| 74 | +# propertyPath: | ||
| 75 | +# redis: /opt/fedex/exporttw/redis/export-redis.properties | ||
| 76 | + language: zh_TW | ||
| 77 | + emailActiveTime: 60 | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +server: | ||
| 2 | + port: 8088 | ||
| 3 | + servlet: | ||
| 4 | + context-path: /kafka-cndc-server | ||
| 5 | +spring: | ||
| 6 | + application: | ||
| 7 | + name: kafka-cndc-server | ||
| 8 | + profiles: | ||
| 9 | + active: @activatedProperties@ | ||
| 10 | + messages: | ||
| 11 | + basename: message | ||
| 12 | + | ||
| 13 | + | ||
| 14 | +mybatis: | ||
| 15 | + mapper-locations: | ||
| 16 | + - classpath*:com/fedex/export/**/mapper/*.xml | ||
| 17 | + configuration: | ||
| 18 | + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl | ||
| 19 | + #开启驼峰与下划线转换 | ||
| 20 | + map-underscore-to-camel-case: true | ||
| 21 | + call-setters-on-nulls: true | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | +<configuration> | ||
| 3 | + <springProfile name="dev,uat,prod"> | ||
| 4 | + <!-- 日志存放路径 --> | ||
| 5 | + <property name="log.path" value="/var/fedex/iclearconnect/weblogic/iclearconnect/export-tw-kafka"></property> | ||
| 6 | + </springProfile> | ||
| 7 | + <springProfile name="test"> | ||
| 8 | + <!-- 日志存放路径 --> | ||
| 9 | + <property name="log.path" value="/app/Oracle/Middleware/user_projects/domains/base_domain/iclearconnect/export-tw-kafka"></property> | ||
| 10 | + </springProfile> | ||
| 11 | + <!-- 日志输出格式 --> | ||
| 12 | + <property name="log.pattern" | ||
| 13 | + value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" /> | ||
| 14 | + <springProfile name="dev,test,uat"> | ||
| 15 | + <property name="log.maxHistory" value="2"></property> | ||
| 16 | + <property name="log.maxFileSize" value="20MB"></property> | ||
| 17 | + </springProfile> | ||
| 18 | + <springProfile name="prod"> | ||
| 19 | + <property name="log.maxHistory" value="10"></property> | ||
| 20 | + <property name="log.maxFileSize" value="20MB"></property> | ||
| 21 | + </springProfile> | ||
| 22 | + <!-- 控制台输出 --> | ||
| 23 | + <appender name="console" | ||
| 24 | + class="ch.qos.logback.core.ConsoleAppender"> | ||
| 25 | + <encoder> | ||
| 26 | + <pattern>${log.pattern}</pattern> | ||
| 27 | + </encoder> | ||
| 28 | + </appender> | ||
| 29 | + | ||
| 30 | + <!-- 系统日志输出 --> | ||
| 31 | + <appender name="file_debug" | ||
| 32 | + class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
| 33 | + <file>${log.path}/tw-kafka-log-debug.log</file> | ||
| 34 | + <!-- 循环政策:基于时间创建日志文件 --> | ||
| 35 | + <rollingPolicy | ||
| 36 | + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> | ||
| 37 | + <!-- 日志文件名格式 --> | ||
| 38 | + <fileNamePattern>${log.path}/tw-kafka-log-debug.%d{yyyy-MM-dd}.%i.log | ||
| 39 | + </fileNamePattern> | ||
| 40 | + <!-- 日志最大的历史 30天 --> | ||
| 41 | + <maxHistory>${log.maxHistory}</maxHistory> | ||
| 42 | + <maxFileSize>${log.maxFileSize}</maxFileSize> | ||
| 43 | + </rollingPolicy> | ||
| 44 | + <encoder> | ||
| 45 | + <pattern>${log.pattern}</pattern> | ||
| 46 | + </encoder> | ||
| 47 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
| 48 | + <!-- 过滤的级别 --> | ||
| 49 | + <level>DEBUG</level> | ||
| 50 | + <!-- 匹配时的操作:接收(记录) --> | ||
| 51 | + <onMatch>ACCEPT</onMatch> | ||
| 52 | + <!-- 不匹配时的操作:拒绝(不记录) --> | ||
| 53 | + <onMismatch>DENY</onMismatch> | ||
| 54 | + </filter> | ||
| 55 | + </appender> | ||
| 56 | + | ||
| 57 | + <appender name="file_info" | ||
| 58 | + class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
| 59 | + <file>${log.path}/tw-kafka-log-info.log</file> | ||
| 60 | + <!-- 循环政策:基于时间创建日志文件 --> | ||
| 61 | + <rollingPolicy | ||
| 62 | + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> | ||
| 63 | + <!-- 日志文件名格式 --> | ||
| 64 | + <fileNamePattern>${log.path}/tw-kafka-log-info.%d{yyyy-MM-dd}.%i.log | ||
| 65 | + </fileNamePattern> | ||
| 66 | + <!-- 日志最大的历史 30天 --> | ||
| 67 | + <maxHistory>${log.maxHistory}</maxHistory> | ||
| 68 | + <maxFileSize>${log.maxFileSize}</maxFileSize> | ||
| 69 | + </rollingPolicy> | ||
| 70 | + <encoder> | ||
| 71 | + <pattern>${log.pattern}</pattern> | ||
| 72 | + </encoder> | ||
| 73 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
| 74 | + <!-- 过滤的级别 --> | ||
| 75 | + <level>INFO</level> | ||
| 76 | + <!-- 匹配时的操作:接收(记录) --> | ||
| 77 | + <onMatch>ACCEPT</onMatch> | ||
| 78 | + <!-- 不匹配时的操作:拒绝(不记录) --> | ||
| 79 | + <onMismatch>DENY</onMismatch> | ||
| 80 | + </filter> | ||
| 81 | + </appender> | ||
| 82 | + | ||
| 83 | + <appender name="file_error" | ||
| 84 | + class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
| 85 | + <file>${log.path}/tw-kafka-log-error.log</file> | ||
| 86 | + <!-- 循环政策:基于时间创建日志文件 --> | ||
| 87 | + <rollingPolicy | ||
| 88 | + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> | ||
| 89 | + <!-- 日志文件名格式 --> | ||
| 90 | + <fileNamePattern>${log.path}/tw-kafka-log-error.%d{yyyy-MM-dd}.%i.log | ||
| 91 | + </fileNamePattern> | ||
| 92 | + <!-- 日志最大的历史 30天 --> | ||
| 93 | + <maxHistory>${log.maxHistory}</maxHistory> | ||
| 94 | + <maxFileSize>${log.maxFileSize}</maxFileSize> | ||
| 95 | + </rollingPolicy> | ||
| 96 | + <encoder> | ||
| 97 | + <pattern>${log.pattern}</pattern> | ||
| 98 | + </encoder> | ||
| 99 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
| 100 | + <!-- 过滤的级别 --> | ||
| 101 | + <level>ERROR</level> | ||
| 102 | + <!-- 匹配时的操作:接收(记录) --> | ||
| 103 | + <onMatch>ACCEPT</onMatch> | ||
| 104 | + <!-- 不匹配时的操作:拒绝(不记录) --> | ||
| 105 | + <onMismatch>DENY</onMismatch> | ||
| 106 | + </filter> | ||
| 107 | + </appender> | ||
| 108 | + <springProfile name="dev"> | ||
| 109 | + <root level="info"> | ||
| 110 | + <appender-ref ref="console"></appender-ref> | ||
| 111 | + </root> | ||
| 112 | + <logger name="com.fedex.export.repository.dao" level="debug"> | ||
| 113 | + <appender-ref ref="file_debug"></appender-ref> | ||
| 114 | + </logger> | ||
| 115 | + <logger name="com.fedex.export.repository.mapper" level="debug"> | ||
| 116 | + <appender-ref ref="file_debug"></appender-ref> | ||
| 117 | + </logger> | ||
| 118 | + </springProfile> | ||
| 119 | + <springProfile name="test"> | ||
| 120 | + <root level="debug"> | ||
| 121 | + <appender-ref ref="file_info"></appender-ref> | ||
| 122 | + <appender-ref ref="file_error"></appender-ref> | ||
| 123 | + </root> | ||
| 124 | + <logger name="com.fedex.export.repository.dao" level="debug"> | ||
| 125 | + <appender-ref ref="file_debug"></appender-ref> | ||
| 126 | + </logger> | ||
| 127 | + <logger name="com.fedex.export.repository.mapper" level="debug"> | ||
| 128 | + <appender-ref ref="file_debug"></appender-ref> | ||
| 129 | + </logger> | ||
| 130 | + </springProfile> | ||
| 131 | + <springProfile name="uat,prod"> | ||
| 132 | + <root level="info"> | ||
| 133 | + <appender-ref ref="file_info"></appender-ref> | ||
| 134 | + <appender-ref ref="file_error"></appender-ref> | ||
| 135 | + </root> | ||
| 136 | + </springProfile> | ||
| 137 | +</configuration> |
| ... | @@ -4,7 +4,7 @@ | ... | @@ -4,7 +4,7 @@ |
| 4 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | 4 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 5 | xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-web-app | 5 | xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-web-app |
| 6 | http://xmlns.oracle.com/weblogic/weblogic-web-app/1.4/weblogic-web-app.xsd"> | 6 | http://xmlns.oracle.com/weblogic/weblogic-web-app/1.4/weblogic-web-app.xsd"> |
| 7 | - <wls:context-root>/iclearconnect</wls:context-root> | 7 | + <wls:context-root>/kafka-cndc-server</wls:context-root> |
| 8 | <wls:library-ref> | 8 | <wls:library-ref> |
| 9 | <library-name>lib4iClearConnect</library-name> | 9 | <library-name>lib4iClearConnect</library-name> |
| 10 | <specification-version>1.0</specification-version> | 10 | <specification-version>1.0</specification-version> | ... | ... |
| 1 | +spring: | ||
| 2 | + datasource: | ||
| 3 | + url: jdbc:oracle:thin:@192.168.1.250:1521:orcl | ||
| 4 | + username: icleartw | ||
| 5 | + password: icleartw | ||
| 6 | + driver-class-name: oracle.jdbc.OracleDriver | ||
| 7 | + profiles: | ||
| 8 | + #系统环境 | ||
| 9 | + env: dev | ||
| 10 | + | ||
| 11 | + | ||
| 12 | +export: | ||
| 13 | + jwt: | ||
| 14 | + securityKey: C*F-JaNdRgUkXn2r5u8x/A?D(G+KbPeShVmYq3s6v9y$B&E)H@McQfTjWnZr4u7w | ||
| 15 | + urlWhiteList: | ||
| 16 | + - /icleartw/auth | ||
| 17 | + - /icleartw/monitor/ok | ||
| 18 | + - /icleartw/sysUser/logout | ||
| 19 | + - /icleartw/swagger-resources | ||
| 20 | + - /icleartw/webjars | ||
| 21 | + uriWhiteList: | ||
| 22 | + - /icleartw/swagger-ui.html | ||
| 23 | + - /icleartw/swagger-ui/* | ||
| 24 | + - /icleartw/v2/api-docs | ||
| 25 | + - /icleartw/login.html | ||
| 26 | + expire_1H: 7200 | ||
| 27 | + expire_1D: 604800 | ||
| 28 | + mail: | ||
| 29 | + smtp: | ||
| 30 | + host: smtp.qiye.aliyun.com | ||
| 31 | + port: 25 | ||
| 32 | + needauth: true | ||
| 33 | + proxy: | ||
| 34 | + startFlag: false | ||
| 35 | + host: sin-proxy.apac.fedex.com | ||
| 36 | + port: 3128 | ||
| 37 | + mailAccountFlag: true | ||
| 38 | + mailgroup: | ||
| 39 | + declare: { from: 'kexin.zhou@erry.com',password: 'Zhou1234',to: 'kexin.zhou@erry.com',cc: 'kexin.zhou@erry.com' } | ||
| 40 | + resetpwd: { from: 'tao.mo@erry.com',password: 'xiaozhen!1'} | ||
| 41 | +# propertyPath: | ||
| 42 | +# redis: /opt/fedex/exporttw/redis/export-redis.properties | ||
| 43 | + language: zh_TW | ||
| 44 | + emailActiveTime: 60 | ||
| 45 | + | ||
| 46 | +upload: | ||
| 47 | + path: | ||
| 48 | + declare: E:/var/fedex/exportTw/upload/declareFile | ||
| 49 | + image: E:/var/fedex/exportTw/upload/brandImage | ||
| 50 | + | ||
| 51 | +url: | ||
| 52 | + loginIndex: http://47.103.140.98:8086/icleartw | ||
| 53 | + twIdx: http://47.103.140.98/IcTw/ | ||
| 54 | + twIdxImg: https://declarationuat.fedex.com.cn/Exp/manager-server/ | ||
| 55 | + | ||
| 56 | +#fcl | ||
| 57 | +fcl: | ||
| 58 | + login: | ||
| 59 | + url: http://exportdeclarationuat-tw.dmz.apac.fedex.com/icleartw/auth/wlgnLogin | ||
| 60 | + redjrectLogin: https://exportdeclarationuat-tw.dmz.apac.fedex.com/IcTw/#/redjrectLogin | ||
| 61 | + twidx: | ||
| 62 | + url: http://exportdeclarationuat-tw.apac.fedex.com | ||
| 63 | + interface: | ||
| 64 | + logurl: https://www.fedex.com/secure-login/zh-tw/#/login-credentials?redirectUrl=http://exportdeclarationuat-tw.dmz.apac.fedex.com/icleartw/auth/wlgnForward | ||
| 65 | + fedex_api_address: https://api.fedex.com | ||
| 66 | + proxy_url: cn2-proxy.apac.fedex.com:3128 | ||
| 67 | + token: | ||
| 68 | + url: /auth/oauth/v2/token | ||
| 69 | + grant_type : client_credentials | ||
| 70 | + client_id: l7c13f958213e04d1280f807789bd783a3 | ||
| 71 | + client_secret: 3d43932198b6467a8e20d024bfa82e1c | ||
| 72 | + scope: oob | ||
| 73 | + account: | ||
| 74 | + url: /user/v2/accounts | ||
| 75 | + userinfo: | ||
| 76 | + url: /user/v2/users/userinfo | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +spring: | ||
| 2 | + datasource: | ||
| 3 | + jndi-name: jdbc/icleartwDS | ||
| 4 | + profiles: | ||
| 5 | + #系统环境 | ||
| 6 | + env: prod | ||
| 7 | + | ||
| 8 | +export: | ||
| 9 | + jwt: | ||
| 10 | + securityKey: C*F-JaNdRgUkXn2r5u8x/A?D(G+KbPeShVmYq3s6v9y$B&E)H@McQfTjWnZr4u7w | ||
| 11 | + urlWhiteList: | ||
| 12 | + - /icleartw/auth | ||
| 13 | + - /icleartw/monitor/ok | ||
| 14 | + - /icleartw/sysUser/logout | ||
| 15 | + - /icleartw/swagger-resources | ||
| 16 | + - /icleartw/webjars | ||
| 17 | + uriWhiteList: | ||
| 18 | + - /icleartw/swagger-ui.html | ||
| 19 | + - /icleartw/swagger-ui/* | ||
| 20 | + - /icleartw/v2/api-docs | ||
| 21 | + - /icleartw/login.html | ||
| 22 | + expire_1H: 7200 | ||
| 23 | + expire_1D: 604800 | ||
| 24 | + mail: | ||
| 25 | + smtp: | ||
| 26 | + host: mapper.gslb.fedex.com | ||
| 27 | + port: 25 | ||
| 28 | + needauth: true | ||
| 29 | + proxy: | ||
| 30 | + startFlag: false | ||
| 31 | + host: sg2-proxy.apac.fedex.com | ||
| 32 | + port: 3128 | ||
| 33 | + mailAccountFlag: false | ||
| 34 | +# propertyPath: | ||
| 35 | +# redis: /opt/fedex/exporttw/redis/export-redis.properties | ||
| 36 | + language: zh_TW | ||
| 37 | + emailActiveTime: 60 | ||
| 38 | + | ||
| 39 | +upload: | ||
| 40 | + path: | ||
| 41 | + declare: /var/share/icleartw/upload/declareFile | ||
| 42 | + image: /var/share/icleartw/upload/brandImage | ||
| 43 | + | ||
| 44 | +url: | ||
| 45 | + loginIndex: https://exportdeclaration-tw.apac.fedex.com/IcTw/ | ||
| 46 | + twIdx: https://exportdeclaration-tw.apac.fedex.com/IcTw/ | ||
| 47 | + twIdxImg: https://declaration.fedex.com.cn/Exp/manager-server/ | ||
| 48 | + | ||
| 49 | +#fcl | ||
| 50 | +fcl: | ||
| 51 | + login: | ||
| 52 | + url: https://exportdeclaration-tw.apac.fedex.com/icleartw/auth/wlgnLogin | ||
| 53 | + redjrectLogin: https://exportdeclaration-tw.apac.fedex.com/IcTw/#/redjrectLogin | ||
| 54 | + twidx: | ||
| 55 | + url: https://exportdeclaration-tw.apac.fedex.com | ||
| 56 | + interface: | ||
| 57 | + logurl: https://www.fedex.com/secure-login/zh-tw/#/login-credentials?redirectUrl=https://exportdeclaration-tw.apac.fedex.com/icleartw/auth/wlgnForward | ||
| 58 | + fedex_api_address: https://api.fedex.com | ||
| 59 | + proxy_url: cn2-proxy.apac.fedex.com:3128 | ||
| 60 | + token: | ||
| 61 | + url: /auth/oauth/v2/token | ||
| 62 | + grant_type : client_credentials | ||
| 63 | + client_id: l7c13f958213e04d1280f807789bd783a3 | ||
| 64 | + client_secret: 3d43932198b6467a8e20d024bfa82e1c | ||
| 65 | + scope: oob | ||
| 66 | + account: | ||
| 67 | + url: /user/v2/accounts | ||
| 68 | + userinfo: | ||
| 69 | + url: /user/v2/users/userinfo | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +spring: | ||
| 2 | + datasource: | ||
| 3 | + jndi-name: jdbc/icleartwDS | ||
| 4 | + profiles: | ||
| 5 | + #系统环境 | ||
| 6 | + env: test | ||
| 7 | + | ||
| 8 | +export: | ||
| 9 | + jwt: | ||
| 10 | + securityKey: C*F-JaNdRgUkXn2r5u8x/A?D(G+KbPeShVmYq3s6v9y$B&E)H@McQfTjWnZr4u7w | ||
| 11 | + urlWhiteList: | ||
| 12 | + - /icleartw/auth | ||
| 13 | + - /icleartw/monitor/ok | ||
| 14 | + - /icleartw/sysUser/logout | ||
| 15 | + - /icleartw/swagger-resources | ||
| 16 | + - /icleartw/webjars | ||
| 17 | + uriWhiteList: | ||
| 18 | + - /icleartw/swagger-ui.html | ||
| 19 | + - /icleartw/swagger-ui/* | ||
| 20 | + - /icleartw/v2/api-docs | ||
| 21 | + - /icleartw/login.html | ||
| 22 | + expire_1H: 7200 | ||
| 23 | + expire_1D: 604800 | ||
| 24 | + mail: | ||
| 25 | + smtp: | ||
| 26 | + host: smtp.qiye.aliyun.com | ||
| 27 | + port: 25 | ||
| 28 | + needauth: true | ||
| 29 | + proxy: | ||
| 30 | + startFlag: false | ||
| 31 | + host: sin-proxy.apac.fedex.com | ||
| 32 | + port: 3128 | ||
| 33 | + mailAccountFlag: true | ||
| 34 | +# propertyPath: | ||
| 35 | +# redis: /opt/fedex/exporttw/redis/export-redis.properties | ||
| 36 | + language: zh_TW | ||
| 37 | + emailActiveTime: 60 | ||
| 38 | + | ||
| 39 | +upload: | ||
| 40 | + path: | ||
| 41 | + declare: /app/Oracle/Middleware/user_projects/domains/base_domain/exportTw/upload/declareFile | ||
| 42 | + image: /app/Oracle/Middleware/user_projects/domains/base_domain/exportTw/upload/brandImage | ||
| 43 | + | ||
| 44 | +url: | ||
| 45 | + loginIndex: http://47.103.140.98:8086/icleartw | ||
| 46 | + twIdx: http://47.103.140.98/IcTw/ | ||
| 47 | + twIdxImg: https://declarationuat.fedex.com.cn/Exp/manager-server/ | ||
| 48 | + | ||
| 49 | +#fcl | ||
| 50 | +fcl: | ||
| 51 | + login: | ||
| 52 | + url: http://exportdeclarationuat-tw.dmz.apac.fedex.com/icleartw/auth/wlgnLogin | ||
| 53 | + redjrectLogin: https://exportdeclarationuat-tw.dmz.apac.fedex.com/IcTw/#/redjrectLogin | ||
| 54 | + twidx: | ||
| 55 | + url: http://exportdeclarationuat-tw.apac.fedex.com | ||
| 56 | + interface: | ||
| 57 | + logurl: https://www.fedex.com/secure-login/zh-tw/#/login-credentials?redirectUrl=http://exportdeclarationuat-tw.dmz.apac.fedex.com/icleartw/auth/wlgnForward | ||
| 58 | + fedex_api_address: https://api.fedex.com | ||
| 59 | + proxy_url: cn2-proxy.apac.fedex.com:3128 | ||
| 60 | + token: | ||
| 61 | + url: /auth/oauth/v2/token | ||
| 62 | + grant_type : client_credentials | ||
| 63 | + client_id: l7c13f958213e04d1280f807789bd783a3 | ||
| 64 | + client_secret: 3d43932198b6467a8e20d024bfa82e1c | ||
| 65 | + scope: oob | ||
| 66 | + account: | ||
| 67 | + url: /user/v2/accounts | ||
| 68 | + userinfo: | ||
| 69 | + url: /user/v2/users/userinfo | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +spring: | ||
| 2 | + datasource: | ||
| 3 | + jndi-name: jdbc/icleartwDS | ||
| 4 | + profiles: | ||
| 5 | + #系统环境 | ||
| 6 | + env: uat | ||
| 7 | + | ||
| 8 | +export: | ||
| 9 | + jwt: | ||
| 10 | + securityKey: C*F-JaNdRgUkXn2r5u8x/A?D(G+KbPeShVmYq3s6v9y$B&E)H@McQfTjWnZr4u7w | ||
| 11 | + urlWhiteList: | ||
| 12 | + - /icleartw/auth | ||
| 13 | + - /icleartw/monitor/ok | ||
| 14 | + - /icleartw/sysUser/logout | ||
| 15 | + - /icleartw/swagger-resources | ||
| 16 | + - /icleartw/webjars | ||
| 17 | + uriWhiteList: | ||
| 18 | + - /icleartw/swagger-ui.html | ||
| 19 | + - /icleartw/swagger-ui/* | ||
| 20 | + - /icleartw/v2/api-docs | ||
| 21 | + - /icleartw/login.html | ||
| 22 | + expire_1H: 7200 | ||
| 23 | + expire_1D: 604800 | ||
| 24 | + mail: | ||
| 25 | + smtp: | ||
| 26 | + host: mapper.gslb.fedex.com | ||
| 27 | + port: 25 | ||
| 28 | + needauth: true | ||
| 29 | + proxy: | ||
| 30 | + startFlag: false | ||
| 31 | + host: sg2-proxy.apac.fedex.com | ||
| 32 | + port: 3128 | ||
| 33 | + mailAccountFlag: false | ||
| 34 | +# propertyPath: | ||
| 35 | +# redis: /opt/fedex/exporttw/redis/export-redis.properties | ||
| 36 | + language: zh_TW | ||
| 37 | + emailActiveTime: 60 | ||
| 38 | + | ||
| 39 | +upload: | ||
| 40 | + path: | ||
| 41 | + declare: /var/share/icleartw/upload/declareFile | ||
| 42 | + image: /var/share/icleartw/upload/brandImage | ||
| 43 | + | ||
| 44 | +url: | ||
| 45 | + loginIndex: http://exportdeclarationuat-tw.dmz.apac.fedex.com/icleartw | ||
| 46 | + twIdx: http://exportdeclarationuat-tw.apac.fedex.com/IcTw/ | ||
| 47 | + twIdxImg: https://declarationuat.fedex.com.cn/Exp/manager-server/ | ||
| 48 | + | ||
| 49 | +fcl: | ||
| 50 | + login: | ||
| 51 | + url: http://exportdeclarationuat-tw.apac.fedex.com/icleartw/auth/wlgnLogin | ||
| 52 | + redjrectLogin: https://exportdeclarationuat-tw.dmz.apac.fedex.com/IcTw/#/redjrectLogin | ||
| 53 | + twidx: | ||
| 54 | + url: http://exportdeclarationuat-tw.apac.fedex.com | ||
| 55 | + interface: | ||
| 56 | + logurl: https://www.fedex.com/secure-login/zh-tw/#/login-credentials?redirectUrl=http://exportdeclarationuat-tw.dmz.apac.fedex.com/icleartw/auth/wlgnForward | ||
| 57 | + fedex_api_address: https://api.fedex.com | ||
| 58 | + proxy_url: cn2-proxy.apac.fedex.com:3128 | ||
| 59 | + token: | ||
| 60 | + url: /auth/oauth/v2/token | ||
| 61 | + grant_type : client_credentials | ||
| 62 | + client_id: l7c13f958213e04d1280f807789bd783a3 | ||
| 63 | + client_secret: 3d43932198b6467a8e20d024bfa82e1c | ||
| 64 | + scope: oob | ||
| 65 | + account: | ||
| 66 | + url: /user/v2/accounts | ||
| 67 | + userinfo: | ||
| 68 | + url: /user/v2/users/userinfo | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +server: | ||
| 2 | + port: 8086 | ||
| 3 | + servlet: | ||
| 4 | + context-path: /manager-server | ||
| 5 | + session: | ||
| 6 | + timeout: 120 | ||
| 7 | +spring: | ||
| 8 | + application: | ||
| 9 | + name: manager-server | ||
| 10 | + profiles: | ||
| 11 | + active: @activatedProperties@ | ||
| 12 | + jackson: | ||
| 13 | + date-format: yyyy-MM-dd HH:mm:ss | ||
| 14 | + time-zone: GMT+8 | ||
| 15 | + servlet: | ||
| 16 | + multipart: | ||
| 17 | + max-file-size: -1 | ||
| 18 | + max-request-size: -1 | ||
| 19 | + messages: | ||
| 20 | + basename: message | ||
| 21 | + encoding: utf-8 | ||
| 22 | + | ||
| 23 | +mybatis: | ||
| 24 | + mapper-locations: | ||
| 25 | + - classpath*:com/fedex/export/**/mapper/*.xml | ||
| 26 | + - classpath*:com/fedex/export/**/mapper/log/*.xml | ||
| 27 | + configuration: | ||
| 28 | + #开启驼峰与下划线转换 | ||
| 29 | + map-underscore-to-camel-case: true | ||
| 30 | + call-setters-on-nulls: true | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | +<configuration> | ||
| 3 | + <springProfile name="dev,uat,prod"> | ||
| 4 | + <!-- 日志存放路径 --> | ||
| 5 | + <property name="log.path" value="/var/fedex/iclearconnect/weblogic/iclearconnect/export-tw-server" /> | ||
| 6 | + </springProfile> | ||
| 7 | + <springProfile name="test"> | ||
| 8 | + <!-- 日志存放路径 --> | ||
| 9 | + <property name="log.path" value="/app/Oracle/Middleware/user_projects/domains/base_domain/iclearconnect/export-tw-server"></property> | ||
| 10 | + </springProfile> | ||
| 11 | + <!-- 日志输出格式 --> | ||
| 12 | + <property name="log.pattern" | ||
| 13 | + value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" /> | ||
| 14 | + <springProfile name="dev,test,uat"> | ||
| 15 | + <property name="log.maxHistory" value="2"></property> | ||
| 16 | + <property name="log.maxFileSize" value="20MB"></property> | ||
| 17 | + </springProfile> | ||
| 18 | + <springProfile name="prod"> | ||
| 19 | + <property name="log.maxHistory" value="10"></property> | ||
| 20 | + <property name="log.maxFileSize" value="20MB"></property> | ||
| 21 | + </springProfile> | ||
| 22 | + <!-- 控制台输出 --> | ||
| 23 | + <appender name="console" | ||
| 24 | + class="ch.qos.logback.core.ConsoleAppender"> | ||
| 25 | + <encoder> | ||
| 26 | + <pattern>${log.pattern}</pattern> | ||
| 27 | + </encoder> | ||
| 28 | + </appender> | ||
| 29 | + | ||
| 30 | + <!-- 系统日志输出 --> | ||
| 31 | + <appender name="file_debug" | ||
| 32 | + class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
| 33 | + <file>${log.path}/sys-debug.log</file> | ||
| 34 | + <!-- 循环政策:基于时间创建日志文件 --> | ||
| 35 | + <rollingPolicy | ||
| 36 | + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> | ||
| 37 | + <!-- 日志文件名格式 --> | ||
| 38 | + <fileNamePattern>${log.path}/sys-debug.%d{yyyy-MM-dd}.%i.log | ||
| 39 | + </fileNamePattern> | ||
| 40 | + <!-- 日志最大的历史 30天 --> | ||
| 41 | + <maxHistory>${log.maxHistory}</maxHistory> | ||
| 42 | + <maxFileSize>${log.maxFileSize}</maxFileSize> | ||
| 43 | + </rollingPolicy> | ||
| 44 | + <encoder> | ||
| 45 | + <pattern>${log.pattern}</pattern> | ||
| 46 | + </encoder> | ||
| 47 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
| 48 | + <!-- 过滤的级别 --> | ||
| 49 | + <level>DEBUG</level> | ||
| 50 | + <!-- 匹配时的操作:接收(记录) --> | ||
| 51 | + <onMatch>ACCEPT</onMatch> | ||
| 52 | + <!-- 不匹配时的操作:拒绝(不记录) --> | ||
| 53 | + <onMismatch>DENY</onMismatch> | ||
| 54 | + </filter> | ||
| 55 | + </appender> | ||
| 56 | + | ||
| 57 | + <appender name="file_info" | ||
| 58 | + class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
| 59 | + <file>${log.path}/sys-info.log</file> | ||
| 60 | + <!-- 循环政策:基于时间创建日志文件 --> | ||
| 61 | + <rollingPolicy | ||
| 62 | + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> | ||
| 63 | + <!-- 日志文件名格式 --> | ||
| 64 | + <fileNamePattern>${log.path}/sys-info.%d{yyyy-MM-dd}.%i.log | ||
| 65 | + </fileNamePattern> | ||
| 66 | + <!-- 日志最大的历史 30天 --> | ||
| 67 | + <maxHistory>${log.maxHistory}</maxHistory> | ||
| 68 | + <maxFileSize>${log.maxFileSize}</maxFileSize> | ||
| 69 | + </rollingPolicy> | ||
| 70 | + <encoder> | ||
| 71 | + <pattern>${log.pattern}</pattern> | ||
| 72 | + </encoder> | ||
| 73 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
| 74 | + <!-- 过滤的级别 --> | ||
| 75 | + <level>INFO</level> | ||
| 76 | + <!-- 匹配时的操作:接收(记录) --> | ||
| 77 | + <onMatch>ACCEPT</onMatch> | ||
| 78 | + <!-- 不匹配时的操作:拒绝(不记录) --> | ||
| 79 | + <onMismatch>DENY</onMismatch> | ||
| 80 | + </filter> | ||
| 81 | + </appender> | ||
| 82 | + | ||
| 83 | + <appender name="file_error" | ||
| 84 | + class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
| 85 | + <file>${log.path}/sys-error.log</file> | ||
| 86 | + <!-- 循环政策:基于时间创建日志文件 --> | ||
| 87 | + <rollingPolicy | ||
| 88 | + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> | ||
| 89 | + <!-- 日志文件名格式 --> | ||
| 90 | + <fileNamePattern>${log.path}/sys-error.%d{yyyy-MM-dd}.%i.log | ||
| 91 | + </fileNamePattern> | ||
| 92 | + <!-- 日志最大的历史 30天 --> | ||
| 93 | + <maxHistory>${log.maxHistory}</maxHistory> | ||
| 94 | + <maxFileSize>${log.maxFileSize}</maxFileSize> | ||
| 95 | + </rollingPolicy> | ||
| 96 | + <encoder> | ||
| 97 | + <pattern>${log.pattern}</pattern> | ||
| 98 | + </encoder> | ||
| 99 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
| 100 | + <!-- 过滤的级别 --> | ||
| 101 | + <level>ERROR</level> | ||
| 102 | + <!-- 匹配时的操作:接收(记录) --> | ||
| 103 | + <onMatch>ACCEPT</onMatch> | ||
| 104 | + <!-- 不匹配时的操作:拒绝(不记录) --> | ||
| 105 | + <onMismatch>DENY</onMismatch> | ||
| 106 | + </filter> | ||
| 107 | + </appender> | ||
| 108 | + <springProfile name="dev"> | ||
| 109 | + <root level="info"> | ||
| 110 | + <appender-ref ref="console"></appender-ref> | ||
| 111 | + </root> | ||
| 112 | + <logger name="com.fedex.export.repository.dao" level="debug"> | ||
| 113 | + <appender-ref ref="file_debug"></appender-ref> | ||
| 114 | + </logger> | ||
| 115 | + <logger name="com.fedex.export.repository.mapper" level="debug"> | ||
| 116 | + <appender-ref ref="file_debug"></appender-ref> | ||
| 117 | + </logger> | ||
| 118 | + </springProfile> | ||
| 119 | + <springProfile name="test"> | ||
| 120 | + <root level="debug"> | ||
| 121 | + <appender-ref ref="file_info"></appender-ref> | ||
| 122 | + <appender-ref ref="file_error"></appender-ref> | ||
| 123 | + </root> | ||
| 124 | + <logger name="com.fedex.export.repository.dao" level="debug"> | ||
| 125 | + <appender-ref ref="file_debug"></appender-ref> | ||
| 126 | + </logger> | ||
| 127 | + <logger name="com.fedex.export.repository.mapper" level="debug"> | ||
| 128 | + <appender-ref ref="file_debug"></appender-ref> | ||
| 129 | + </logger> | ||
| 130 | + </springProfile> | ||
| 131 | + <springProfile name="uat,prod"> | ||
| 132 | + <root level="info"> | ||
| 133 | + <appender-ref ref="file_info"></appender-ref> | ||
| 134 | + <appender-ref ref="file_error"></appender-ref> | ||
| 135 | + </root> | ||
| 136 | + </springProfile> | ||
| 137 | +</configuration> |
File mode changed
File mode changed
| ... | @@ -4,7 +4,7 @@ | ... | @@ -4,7 +4,7 @@ |
| 4 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | 4 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 5 | xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-web-app | 5 | xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-web-app |
| 6 | http://xmlns.oracle.com/weblogic/weblogic-web-app/1.4/weblogic-web-app.xsd"> | 6 | http://xmlns.oracle.com/weblogic/weblogic-web-app/1.4/weblogic-web-app.xsd"> |
| 7 | - <wls:context-root>/iclearconnect</wls:context-root> | 7 | + <wls:context-root>/manager-server</wls:context-root> |
| 8 | <wls:library-ref> | 8 | <wls:library-ref> |
| 9 | <library-name>lib4iClearConnect</library-name> | 9 | <library-name>lib4iClearConnect</library-name> |
| 10 | <specification-version>1.0</specification-version> | 10 | <specification-version>1.0</specification-version> | ... | ... |
| 1 | +spring: | ||
| 2 | + #JDBC连接信息 | ||
| 3 | + datasource: | ||
| 4 | + url: jdbc:oracle:thin:@192.168.1.250:1521:orcl | ||
| 5 | + username: icleartw | ||
| 6 | + password: icleartw | ||
| 7 | + driver-class-name: oracle.jdbc.OracleDriver | ||
| 8 | + profiles: | ||
| 9 | + #系统环境 | ||
| 10 | + env: dev | ||
| 11 | + | ||
| 12 | +allocation: | ||
| 13 | + nodeId: 1 | ||
| 14 | + | ||
| 15 | +export: | ||
| 16 | + mail: | ||
| 17 | + smtp: | ||
| 18 | + host: smtp.qiye.aliyun.com | ||
| 19 | + port: 25 | ||
| 20 | + needauth: true | ||
| 21 | + proxy: | ||
| 22 | + startFlag: false | ||
| 23 | + host: sin-proxy.apac.fedex.com | ||
| 24 | + port: 3128 | ||
| 25 | + mailAccountFlag: true | ||
| 26 | +# propertyPath: | ||
| 27 | +# redis: /opt/fedex/exporttw/redis/export-redis.properties | ||
| 28 | + language: zh_TW | ||
| 29 | + task: | ||
| 30 | + allocation: | ||
| 31 | + #定时重发送申报信息邮件 | ||
| 32 | + sendDeclareInfoMail: 0 0/5 * * * ? | ||
| 33 | + #定时获取邮件发送结果回执(读取html界面) | ||
| 34 | + readHtmlReceipt: 0 0/1 * * * ? | ||
| 35 | + #定时任务处理邮件回执超时 | ||
| 36 | + receiptTimout: 0 0/3 * * * ? | ||
| 37 | + #同步HTML结果到Declare | ||
| 38 | + syncHtmlToDeclare: 0 0/1 * * * ? | ||
| 39 | + #CE晚来数据补偿发送邮件 | ||
| 40 | + ceCompensate: 0 0/1 * * * ? | ||
| 41 | + #EDD邮件或者清关组邮件,每一小时轮巡监控超过10票失败,发送预警邮件 | ||
| 42 | + warningEmail: 0 0/1 * * * ? | ||
| 43 | + #进口预清关补偿发送邮件(发送失败的邮件补偿发送) | ||
| 44 | + ceLogCompensate: 0 0/1 * * * ? | ||
| 45 | + #kafka补偿定时任务 | ||
| 46 | + kafkaRetry: 0 0/1 * * * ? | ||
| 47 | + #推送ob zip包文件任务 | ||
| 48 | + sendOb: 0 0/1 * * * ? | ||
| 49 | + #推送ob文件异常重试任务 | ||
| 50 | + sendObRetry: 0 0/1 * * * ? | ||
| 51 | + #定时清理文件夹 | ||
| 52 | + clearFolders: 0 0/1 * * * ? | ||
| 53 | +url: | ||
| 54 | + proxy_hostname: sin-proxy.apac.fedex.com | ||
| 55 | + mailHtmlReceipt: http://47.103.140.98:8088/IcTw/Index_of_report_silkConvListRpt.html | ||
| 56 | + baseUrl: http://192.168.1.251/IcTw/ | ||
| 57 | + fedex: fedex.png | ||
| 58 | + line: line.png | ||
| 59 | + | ||
| 60 | +rpc: | ||
| 61 | + url: | ||
| 62 | + rpcKafkaReceive145: http://localhost:8088/icleartwkafka/rpcKafka/rpcKafkaReceive | ||
| 63 | + rpcKafkaReceive146: http://localhost:8088/icleartwkafka/rpcKafka/rpcKafkaReceive | ||
| 64 | + | ||
| 65 | +tw001: | ||
| 66 | + path: | ||
| 67 | + #基础路径 | ||
| 68 | + basePath: /var/share/icleartw/TWIMPORT/ | ||
| 69 | + #json生成路径 | ||
| 70 | + work: ${tw001.path.basePath}work/ | ||
| 71 | + #zip输出目录 | ||
| 72 | + final: ${tw001.path.basePath}sftp/Final/ | ||
| 73 | + #备份目录 | ||
| 74 | + bak: ${tw001.path.basePath}BAK/ | ||
| 75 | + #异常目录 | ||
| 76 | + error: ${tw001.path.basePath}ERROR/ | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +spring: | ||
| 2 | + datasource: | ||
| 3 | + jndi-name: jdbc/icleartwDS | ||
| 4 | + profiles: | ||
| 5 | + #系统环境 | ||
| 6 | + env: prod | ||
| 7 | + | ||
| 8 | +allocation: | ||
| 9 | + nodeId: 1 | ||
| 10 | + | ||
| 11 | +export: | ||
| 12 | + mail: | ||
| 13 | + smtp: | ||
| 14 | + host: mapper.gslb.fedex.com | ||
| 15 | + port: 25 | ||
| 16 | + needauth: true | ||
| 17 | + proxy: | ||
| 18 | + startFlag: true | ||
| 19 | + host: sg2-proxy.apac.fedex.com | ||
| 20 | + port: 3128 | ||
| 21 | + mailAccountFlag: false | ||
| 22 | +# propertyPath: | ||
| 23 | +# redis: /opt/fedex/exporttw/redis/export-redis.properties | ||
| 24 | + language: zh_TW | ||
| 25 | + task: | ||
| 26 | + allocation: | ||
| 27 | + #定时重发送申报信息邮件 | ||
| 28 | + sendDeclareInfoMail: 0 0/5 * * * ? | ||
| 29 | + #定时获取邮件发送结果回执(读取html界面) | ||
| 30 | + readHtmlReceipt: 0 0/3 * * * ? | ||
| 31 | + #定时任务处理邮件回执超时 | ||
| 32 | + receiptTimout: 0 0/3 * * * ? | ||
| 33 | + #同步HTML结果到Declare | ||
| 34 | + syncHtmlToDeclare: 0 0/1 * * * ? | ||
| 35 | + #CE晚来数据补偿发送邮件 | ||
| 36 | + ceCompensate: 0 0/5 * * * ? | ||
| 37 | + #EDD邮件或者清关组邮件,每一小时轮巡监控超过10票失败,发送预警邮件 | ||
| 38 | + warningEmail: 0 0 0/1 * * ? | ||
| 39 | + #进口预清关补偿发送邮件(发送失败的邮件补偿发送) | ||
| 40 | + ceLogCompensate: 0 0/10 * * * ? | ||
| 41 | + #kafka补偿定时任务 | ||
| 42 | + kafkaRetry: 0 0/1 * * * ? | ||
| 43 | + #推送ob zip包文件任务 | ||
| 44 | + sendOb: 0 0/1 * * * ? | ||
| 45 | + #推送ob zip包文件异常重试任务 | ||
| 46 | + sendObRetry: 0 0/3 * * * ? | ||
| 47 | + #定时清理文件夹 | ||
| 48 | + clearFolders: 0 0 01 * * ? | ||
| 49 | +url: | ||
| 50 | + proxy_hostname: sin-proxy.apac.fedex.com | ||
| 51 | + mailHtmlReceipt: http://155.161.252.18/report/silkConvListRpt/ | ||
| 52 | + baseUrl: https://exportdeclaration-tw.apac.fedex.com/IcTw/ | ||
| 53 | + fedex: fedex.png | ||
| 54 | + line: line.png | ||
| 55 | + | ||
| 56 | +rpc: | ||
| 57 | + url: | ||
| 58 | + rpcKafkaReceive145: https://pjea0179.prod.apac.fedex.com:9002/icleartwkafka/rpcKafka/rpcKafkaReceive | ||
| 59 | + rpcKafkaReceive146: https://pjea0180.prod.apac.fedex.com:9002/icleartwkafka/rpcKafka/rpcKafkaReceive | ||
| 60 | + | ||
| 61 | +tw001: | ||
| 62 | + path: | ||
| 63 | + #基础路径 | ||
| 64 | + basePath: /var/share/icleartw/TWIMPORT/ | ||
| 65 | + #json生成路径 | ||
| 66 | + work: ${tw001.path.basePath}work/ | ||
| 67 | + #zip输出目录 | ||
| 68 | + final: ${tw001.path.basePath}sftp/Final/ | ||
| 69 | + #备份目录 | ||
| 70 | + bak: ${tw001.path.basePath}BAK/ | ||
| 71 | + #异常目录 | ||
| 72 | + error: ${tw001.path.basePath}ERROR/ | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +spring: | ||
| 2 | + datasource: | ||
| 3 | + jndi-name: jdbc/icleartwDS | ||
| 4 | + profiles: | ||
| 5 | + #系统环境 | ||
| 6 | + env: test | ||
| 7 | + | ||
| 8 | +allocation: | ||
| 9 | + nodeId: 1 | ||
| 10 | + | ||
| 11 | +export: | ||
| 12 | + mail: | ||
| 13 | + smtp: | ||
| 14 | + host: smtp.qiye.aliyun.com | ||
| 15 | + port: 25 | ||
| 16 | + needauth: true | ||
| 17 | + proxy: | ||
| 18 | + startFlag: false | ||
| 19 | + host: sin-proxy.apac.fedex.com | ||
| 20 | + port: 3128 | ||
| 21 | + mailAccountFlag: true | ||
| 22 | +# propertyPath: | ||
| 23 | +# redis: /opt/fedex/exporttw/redis/export-redis.properties | ||
| 24 | + language: zh_TW | ||
| 25 | + task: | ||
| 26 | + allocation: | ||
| 27 | + #定时重发送申报信息邮件 | ||
| 28 | + sendDeclareInfoMail: 0 0/5 * * * ? | ||
| 29 | + #定时获取邮件发送结果回执(读取html界面) | ||
| 30 | + readHtmlReceipt: 0 0/3 * * * ? | ||
| 31 | + #定时任务处理邮件回执超时 | ||
| 32 | + receiptTimout: 0 0/3 * * * ? | ||
| 33 | + #同步HTML结果到Declare | ||
| 34 | + syncHtmlToDeclare: 0 0/1 * * * ? | ||
| 35 | + #CE晚来数据补偿发送邮件 | ||
| 36 | + ceCompensate: 0 0/1 * * * ? | ||
| 37 | + #EDD邮件或者清关组邮件,每一小时轮巡监控超过10票失败,发送预警邮件 | ||
| 38 | + warningEmail: 0 0/1 * * * ? | ||
| 39 | + #进口预清关补偿发送邮件(发送失败的邮件补偿发送) | ||
| 40 | + ceLogCompensate: 0 0/1 * * * ? | ||
| 41 | + #kafka补偿定时任务 | ||
| 42 | + kafkaRetry: 0 0/1 * * * ? | ||
| 43 | + #推送ob zip包文件任务 | ||
| 44 | + sendOb: 0 0/1 * * * ? | ||
| 45 | + #推送ob zip包文件异常重试任务 | ||
| 46 | + sendObRetry: 0 0/1 * * * ? | ||
| 47 | + #定时清理文件夹 | ||
| 48 | + clearFolders: 0 0/1 * * * ? | ||
| 49 | +url: | ||
| 50 | + proxy_hostname: sin-proxy.apac.fedex.com | ||
| 51 | + mailHtmlReceipt: http://47.103.140.98:8088/IcTw/Index_of_report_silkConvListRpt.html | ||
| 52 | + baseUrl: http://192.168.1.251/IcTw/ | ||
| 53 | + fedex: fedex.png | ||
| 54 | + line: line.png | ||
| 55 | + | ||
| 56 | +rpc: | ||
| 57 | + url: | ||
| 58 | + rpcKafkaReceive145: http://47.103.140.98:7010/icleartwkafka/rpcKafka/rpcKafkaReceive | ||
| 59 | + rpcKafkaReceive146: http://47.103.140.98:7010/icleartwkafka/rpcKafka/rpcKafkaReceive | ||
| 60 | + | ||
| 61 | +tw001: | ||
| 62 | + path: | ||
| 63 | + #基础路径 | ||
| 64 | + basePath: /app/Oracle/Middleware/user_projects/domains/base_domain/exportTw/TWIMPORT/ | ||
| 65 | + #json生成路径 | ||
| 66 | + work: ${tw001.path.basePath}work/ | ||
| 67 | + #zip输出目录 | ||
| 68 | + final: ${tw001.path.basePath}sftp/Final/ | ||
| 69 | + #备份目录 | ||
| 70 | + bak: ${tw001.path.basePath}BAK/ | ||
| 71 | + #异常目录 | ||
| 72 | + error: ${tw001.path.basePath}ERROR/ | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +spring: | ||
| 2 | + datasource: | ||
| 3 | + jndi-name: jdbc/icleartwDS | ||
| 4 | + profiles: | ||
| 5 | + #系统环境 | ||
| 6 | + env: uat | ||
| 7 | + | ||
| 8 | +allocation: | ||
| 9 | + nodeId: 1 | ||
| 10 | + | ||
| 11 | +export: | ||
| 12 | + mail: | ||
| 13 | + smtp: | ||
| 14 | + host: mapper.gslb.fedex.com | ||
| 15 | + port: 25 | ||
| 16 | + needauth: true | ||
| 17 | + proxy: | ||
| 18 | + startFlag: true | ||
| 19 | + host: sg2-proxy.apac.fedex.com | ||
| 20 | + port: 3128 | ||
| 21 | + mailAccountFlag: false | ||
| 22 | +# propertyPath: | ||
| 23 | +# redis: /opt/fedex/exporttw/redis/export-redis.properties | ||
| 24 | + language: zh_TW | ||
| 25 | + task: | ||
| 26 | + allocation: | ||
| 27 | + #定时重发送申报信息邮件 | ||
| 28 | + sendDeclareInfoMail: 0 0/5 * * * ? | ||
| 29 | + #定时获取邮件发送结果回执(读取html界面) | ||
| 30 | + readHtmlReceipt: 0 0/3 * * * ? | ||
| 31 | + #定时任务处理邮件回执超时 | ||
| 32 | + receiptTimout: 0 0/3 * * * ? | ||
| 33 | + #同步HTML结果到Declare | ||
| 34 | + syncHtmlToDeclare: 0 0/1 * * * ? | ||
| 35 | + #CE晚来数据补偿发送邮件 | ||
| 36 | + ceCompensate: 0 0/5 * * * ? | ||
| 37 | + #EDD邮件或者清关组邮件,每一小时轮巡监控超过10票失败,发送预警邮件 | ||
| 38 | + warningEmail: 0 0 0/1 * * ? | ||
| 39 | + #进口预清关补偿发送邮件(发送失败的邮件补偿发送) | ||
| 40 | + ceLogCompensate: 0 0/10 * * * ? | ||
| 41 | + #kafka补偿定时任务 | ||
| 42 | + kafkaRetry: 0 0/1 * * * ? | ||
| 43 | + #推送ob zip包文件任务 | ||
| 44 | + sendOb: 0 0/1 * * * ? | ||
| 45 | + #推送ob zip包文件异常重试任务 | ||
| 46 | + sendObRetry: 0 0/3 * * * ? | ||
| 47 | + #定时清理文件夹 | ||
| 48 | + clearFolders: 0 0 01 * * ? | ||
| 49 | +url: | ||
| 50 | + proxy_hostname: sin-proxy.apac.fedex.com | ||
| 51 | + mailHtmlReceipt: http://155.161.252.18/report/silkConvListRpt/ | ||
| 52 | + baseUrl: https://exportdeclarationuat-tw.apac.fedex.com/IcTw/ | ||
| 53 | + fedex: fedex.png | ||
| 54 | + line: line.png | ||
| 55 | + | ||
| 56 | +rpc: | ||
| 57 | + url: | ||
| 58 | + rpcKafkaReceive145: http://ujea0145.nonprod.apac.fedex.com:9001/icleartwkafka/rpcKafka/rpcKafkaReceive | ||
| 59 | + rpcKafkaReceive146: http://ujea0146.nonprod.apac.fedex.com:9001/icleartwkafka/rpcKafka/rpcKafkaReceive | ||
| 60 | + | ||
| 61 | +tw001: | ||
| 62 | + path: | ||
| 63 | + #基础路径 | ||
| 64 | + basePath: /var/share/icleartw/TWIMPORT/ | ||
| 65 | + #json生成路径 | ||
| 66 | + work: ${tw001.path.basePath}work/ | ||
| 67 | + #zip输出目录 | ||
| 68 | + final: ${tw001.path.basePath}sftp/Final/ | ||
| 69 | + #备份目录 | ||
| 70 | + bak: ${tw001.path.basePath}BAK/ | ||
| 71 | + #异常目录 | ||
| 72 | + error: ${tw001.path.basePath}ERROR/ | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +server: | ||
| 2 | + port: 8087 | ||
| 3 | + servlet: | ||
| 4 | + context-path: /task-schedule | ||
| 5 | +spring: | ||
| 6 | + application: | ||
| 7 | + name: task-schedule | ||
| 8 | + profiles: | ||
| 9 | + active: @activatedProperties@ | ||
| 10 | + messages: | ||
| 11 | + basename: message | ||
| 12 | + | ||
| 13 | + | ||
| 14 | +mybatis: | ||
| 15 | + mapper-locations: | ||
| 16 | + - classpath*:com/fedex/export/**/mapper/*.xml | ||
| 17 | + - classpath*:com/fedex/export/**/mapper/log/*.xml | ||
| 18 | + - classpath*:com/fedex/export/**/mapper/sys/*.xml | ||
| 19 | + configuration: | ||
| 20 | + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl | ||
| 21 | + #开启驼峰与下划线转换 | ||
| 22 | + map-underscore-to-camel-case: true | ||
| 23 | + call-setters-on-nulls: true | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +spring.redis.host=223.166.86.220 | ||
| 2 | +spring.redis.port=6333 | ||
| 3 | +spring.redis.password=!QAZ2wsx | ||
| 4 | +spring.redis.timeout=3000 | ||
| 5 | +spring.redis.jedis.pool.max-active=50 | ||
| 6 | +spring.redis.jedis.pool.max-wait=-1 | ||
| 7 | +spring.redis.jedis.pool.max-idle=4 | ||
| 8 | +spring.redis.jedis.pool.min-idle=0 | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | +<configuration> | ||
| 3 | + <springProfile name="dev,uat,prod"> | ||
| 4 | + <!-- 日志存放路径 --> | ||
| 5 | + <property name="log.path" value="/var/fedex/iclearconnect/weblogic/iclearconnect/export-tw-task" /> | ||
| 6 | + </springProfile> | ||
| 7 | + <springProfile name="test"> | ||
| 8 | + <!-- 日志存放路径 --> | ||
| 9 | + <property name="log.path" value="/app/Oracle/Middleware/user_projects/domains/base_domain/iclearconnect/export-tw-task"></property> | ||
| 10 | + </springProfile> | ||
| 11 | + <!-- 日志输出格式 --> | ||
| 12 | + <property name="log.pattern" | ||
| 13 | + value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" /> | ||
| 14 | + <springProfile name="dev,test,uat"> | ||
| 15 | + <property name="log.maxHistory" value="2"></property> | ||
| 16 | + <property name="log.maxFileSize" value="20MB"></property> | ||
| 17 | + </springProfile> | ||
| 18 | + <springProfile name="prod"> | ||
| 19 | + <property name="log.maxHistory" value="10"></property> | ||
| 20 | + <property name="log.maxFileSize" value="20MB"></property> | ||
| 21 | + </springProfile> | ||
| 22 | + <!-- 控制台输出 --> | ||
| 23 | + <appender name="console" | ||
| 24 | + class="ch.qos.logback.core.ConsoleAppender"> | ||
| 25 | + <encoder> | ||
| 26 | + <pattern>${log.pattern}</pattern> | ||
| 27 | + </encoder> | ||
| 28 | + </appender> | ||
| 29 | + | ||
| 30 | + <!-- 系统日志输出 --> | ||
| 31 | + <appender name="file_debug" | ||
| 32 | + class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
| 33 | + <file>${log.path}/tw-task-log-debug.log</file> | ||
| 34 | + <!-- 循环政策:基于时间创建日志文件 --> | ||
| 35 | + <rollingPolicy | ||
| 36 | + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> | ||
| 37 | + <!-- 日志文件名格式 --> | ||
| 38 | + <fileNamePattern>${log.path}/tw-task-log-debug.%d{yyyy-MM-dd}.%i.log | ||
| 39 | + </fileNamePattern> | ||
| 40 | + <!-- 日志最大的历史 30天 --> | ||
| 41 | + <maxHistory>${log.maxHistory}</maxHistory> | ||
| 42 | + <maxFileSize>${log.maxFileSize}</maxFileSize> | ||
| 43 | + </rollingPolicy> | ||
| 44 | + <encoder> | ||
| 45 | + <pattern>${log.pattern}</pattern> | ||
| 46 | + </encoder> | ||
| 47 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
| 48 | + <!-- 过滤的级别 --> | ||
| 49 | + <level>DEBUG</level> | ||
| 50 | + <!-- 匹配时的操作:接收(记录) --> | ||
| 51 | + <onMatch>ACCEPT</onMatch> | ||
| 52 | + <!-- 不匹配时的操作:拒绝(不记录) --> | ||
| 53 | + <onMismatch>DENY</onMismatch> | ||
| 54 | + </filter> | ||
| 55 | + </appender> | ||
| 56 | + | ||
| 57 | + <appender name="file_info" | ||
| 58 | + class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
| 59 | + <file>${log.path}/tw-task-log-info.log</file> | ||
| 60 | + <!-- 循环政策:基于时间创建日志文件 --> | ||
| 61 | + <rollingPolicy | ||
| 62 | + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> | ||
| 63 | + <!-- 日志文件名格式 --> | ||
| 64 | + <fileNamePattern>${log.path}/tw-task-log-info.%d{yyyy-MM-dd}.%i.log | ||
| 65 | + </fileNamePattern> | ||
| 66 | + <!-- 日志最大的历史 30天 --> | ||
| 67 | + <maxHistory>${log.maxHistory}</maxHistory> | ||
| 68 | + <maxFileSize>${log.maxFileSize}</maxFileSize> | ||
| 69 | + </rollingPolicy> | ||
| 70 | + <encoder> | ||
| 71 | + <pattern>${log.pattern}</pattern> | ||
| 72 | + </encoder> | ||
| 73 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
| 74 | + <!-- 过滤的级别 --> | ||
| 75 | + <level>INFO</level> | ||
| 76 | + <!-- 匹配时的操作:接收(记录) --> | ||
| 77 | + <onMatch>ACCEPT</onMatch> | ||
| 78 | + <!-- 不匹配时的操作:拒绝(不记录) --> | ||
| 79 | + <onMismatch>DENY</onMismatch> | ||
| 80 | + </filter> | ||
| 81 | + </appender> | ||
| 82 | + | ||
| 83 | + <appender name="file_error" | ||
| 84 | + class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
| 85 | + <file>${log.path}/tw-task-log-error.log</file> | ||
| 86 | + <!-- 循环政策:基于时间创建日志文件 --> | ||
| 87 | + <rollingPolicy | ||
| 88 | + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> | ||
| 89 | + <!-- 日志文件名格式 --> | ||
| 90 | + <fileNamePattern>${log.path}/tw-task-log-error.%d{yyyy-MM-dd}.%i.log | ||
| 91 | + </fileNamePattern> | ||
| 92 | + <!-- 日志最大的历史 30天 --> | ||
| 93 | + <maxHistory>${log.maxHistory}</maxHistory> | ||
| 94 | + <maxFileSize>${log.maxFileSize}</maxFileSize> | ||
| 95 | + </rollingPolicy> | ||
| 96 | + <encoder> | ||
| 97 | + <pattern>${log.pattern}</pattern> | ||
| 98 | + </encoder> | ||
| 99 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
| 100 | + <!-- 过滤的级别 --> | ||
| 101 | + <level>ERROR</level> | ||
| 102 | + <!-- 匹配时的操作:接收(记录) --> | ||
| 103 | + <onMatch>ACCEPT</onMatch> | ||
| 104 | + <!-- 不匹配时的操作:拒绝(不记录) --> | ||
| 105 | + <onMismatch>DENY</onMismatch> | ||
| 106 | + </filter> | ||
| 107 | + </appender> | ||
| 108 | + <springProfile name="dev"> | ||
| 109 | + <root level="info"> | ||
| 110 | + <appender-ref ref="console"></appender-ref> | ||
| 111 | + </root> | ||
| 112 | + <logger name="com.fedex.export.repository.dao" level="debug"> | ||
| 113 | + <appender-ref ref="file_debug"></appender-ref> | ||
| 114 | + </logger> | ||
| 115 | + <logger name="com.fedex.export.repository.mapper" level="debug"> | ||
| 116 | + <appender-ref ref="file_debug"></appender-ref> | ||
| 117 | + </logger> | ||
| 118 | + </springProfile> | ||
| 119 | + <springProfile name="test"> | ||
| 120 | + <root level="debug"> | ||
| 121 | + <appender-ref ref="file_info"></appender-ref> | ||
| 122 | + <appender-ref ref="file_error"></appender-ref> | ||
| 123 | + </root> | ||
| 124 | + <logger name="com.fedex.export.repository.dao" level="debug"> | ||
| 125 | + <appender-ref ref="file_debug"></appender-ref> | ||
| 126 | + </logger> | ||
| 127 | + <logger name="com.fedex.export.repository.mapper" level="debug"> | ||
| 128 | + <appender-ref ref="file_debug"></appender-ref> | ||
| 129 | + </logger> | ||
| 130 | + </springProfile> | ||
| 131 | + <springProfile name="uat,prod"> | ||
| 132 | + <root level="info"> | ||
| 133 | + <appender-ref ref="file_info"></appender-ref> | ||
| 134 | + <appender-ref ref="file_error"></appender-ref> | ||
| 135 | + </root> | ||
| 136 | + </springProfile> | ||
| 137 | +</configuration> |
File mode changed
File mode changed
| ... | @@ -4,7 +4,7 @@ | ... | @@ -4,7 +4,7 @@ |
| 4 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | 4 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 5 | xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-web-app | 5 | xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-web-app |
| 6 | http://xmlns.oracle.com/weblogic/weblogic-web-app/1.4/weblogic-web-app.xsd"> | 6 | http://xmlns.oracle.com/weblogic/weblogic-web-app/1.4/weblogic-web-app.xsd"> |
| 7 | - <wls:context-root>/iclearconnect</wls:context-root> | 7 | + <wls:context-root>/task-schedule</wls:context-root> |
| 8 | <wls:library-ref> | 8 | <wls:library-ref> |
| 9 | <library-name>lib4iClearConnect</library-name> | 9 | <library-name>lib4iClearConnect</library-name> |
| 10 | <specification-version>1.0</specification-version> | 10 | <specification-version>1.0</specification-version> | ... | ... |
-
Please register or login to post a comment