正在显示
52 个修改的文件
包含
3326 行增加
和
1 行删除
config/application.yml
0 → 100644
1 | +server: | ||
2 | + port: 9011 | ||
3 | +# spring 配置 | ||
4 | +spring: | ||
5 | + application: | ||
6 | + name: cgonms-arrival | ||
7 | + profiles: | ||
8 | + active: dev | ||
9 | + datasource: | ||
10 | + type: com.alibaba.druid.pool.DruidDataSource | ||
11 | + driver-class-name: oracle.jdbc.OracleDriver | ||
12 | + url: jdbc:oracle:thin:@192.168.1.253:1522:ORCLL | ||
13 | + username: CGONMS | ||
14 | + password: vmvnv1v2 | ||
15 | + | ||
16 | + jackson: | ||
17 | + default-property-inclusion: ALWAYS | ||
18 | + time-zone: GMT+8 | ||
19 | + date-format: yyyy-MM-dd | ||
20 | + security: | ||
21 | + user: | ||
22 | + name: admin | ||
23 | + password: 123456 | ||
24 | + # zipkin 配置 | ||
25 | + zipkin: | ||
26 | + base-url: http://192.168.1.63:9411 | ||
27 | + sleuth: | ||
28 | + sampler: | ||
29 | + probability: 1 | ||
30 | + | ||
31 | +# mybatis配置 | ||
32 | +mybatis: | ||
33 | + mapper-locations: classpath:mapper/*.xml | ||
34 | + type-aliases-package: com.sunyo.wlpt.cgonms.provide.domain | ||
35 | + | ||
36 | +# 日志配置 | ||
37 | +logging: | ||
38 | + config: config/logback-dev.xml | ||
39 | + level: | ||
40 | + com.sunyo.wlpt.cgonms.provide.mapper: debug | ||
41 | +logback: | ||
42 | + appname: cgonms-provide | ||
43 | + logdir: ./log | ||
44 | + | ||
45 | + | ||
46 | +#eureka client | ||
47 | +eureka: | ||
48 | + instance: | ||
49 | + status-page-url: http://${eureka.instance.hostname}:${server.port}/index | ||
50 | + prefer-ip-address: true | ||
51 | + instance-id: ${spring.cloud.client.ip-address}:${server.port} | ||
52 | + hostname: ${spring.cloud.client.ip-address} | ||
53 | + metadata-map: | ||
54 | + user: | ||
55 | + name: "admin" | ||
56 | + passwoed: "123456" | ||
57 | + client: | ||
58 | + healthcheck: | ||
59 | + enabled: true | ||
60 | + service-url: | ||
61 | + defaultZone: http://192.168.1.53:12345/eureka/ | ||
62 | + | ||
63 | +feign: | ||
64 | + hystrix: | ||
65 | + enabled: false | ||
66 | + client: | ||
67 | + config: | ||
68 | + default: | ||
69 | + connectTimeout: 1000000 # feign 的超时设置 | ||
70 | + readTimeout: 1000000 | ||
71 | +# boot admin | ||
72 | +management: | ||
73 | + endpoints: | ||
74 | + enabled-by-default: true | ||
75 | + web: | ||
76 | + exposure: | ||
77 | + include: ["*"] | ||
78 | + endpoint: | ||
79 | + health: | ||
80 | + show-details: always | ||
81 | + shutdown: | ||
82 | + enabled: true | ||
83 | + | ||
84 | +path: | ||
85 | + # 文件夹的位置,就一个文件夹 | ||
86 | + dir: excel | ||
87 | + | ||
88 | +delete: | ||
89 | + # 删除7天之前的excel文件 | ||
90 | + timeInterval: 604800000 |
config/logback-dev.xml
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<!--参考文档链接:https://blog.csdn.net/qq_34912478/article/details/80877132--> | ||
3 | +<!-- 日志级别从低到高分为TRACE < DEBUG < INFO < WARN < ERROR < FATAL,如果设置为WARN,则低于WARN的信息都不会输出 --> | ||
4 | +<!-- scan:当此属性设置为true时,配置文件如果发生改变,将会被重新加载,默认值为true --> | ||
5 | +<!-- scanPeriod:设置监测配置文件是否有修改的时间间隔,如果没有给出时间单位,默认单位是毫秒。当scan为true时,此属性生效。默认的时间间隔为1分钟。 --> | ||
6 | +<!-- debug:当此属性设置为true时,将打印出logback内部日志信息,实时查看logback运行状态。默认值为false。 --> | ||
7 | +<configuration scan="true" scanPeriod="10 seconds"> | ||
8 | + | ||
9 | + <!--<include resource="org/springframework/boot/logging/logback/base.xml" />--> | ||
10 | + | ||
11 | + <contextName>logback</contextName> | ||
12 | + <!-- name的值是变量的名称,value的值时变量定义的值。通过定义的值会被插入到logger上下文中。定义变量后,可以使“${}”来使用变量。 --> | ||
13 | + <property name="log.path" value="./logs" /> | ||
14 | + | ||
15 | + <!-- 彩色日志 --> | ||
16 | + <!-- 彩色日志依赖的渲染类 --> | ||
17 | + <conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter" /> | ||
18 | + <conversionRule conversionWord="wex" converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter" /> | ||
19 | + <conversionRule conversionWord="wEx" converterClass="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter" /> | ||
20 | + <!-- 彩色日志格式 --> | ||
21 | + <property name="CONSOLE_LOG_PATTERN" value="${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"/> | ||
22 | + | ||
23 | + | ||
24 | + <!--输出到控制台--> | ||
25 | + <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> | ||
26 | + <!--此日志appender是为开发使用,只配置最底级别,控制台输出的日志级别是大于或等于此级别的日志信息--> | ||
27 | + <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | ||
28 | + <level>debug</level> | ||
29 | + </filter> | ||
30 | + <encoder> | ||
31 | + <Pattern>${CONSOLE_LOG_PATTERN}</Pattern> | ||
32 | + <!-- 设置字符集 windows系统这里设置成GBK--> | ||
33 | + <charset>UTF-8</charset> | ||
34 | + </encoder> | ||
35 | + </appender> | ||
36 | + | ||
37 | + | ||
38 | + <!--输出到文件--> | ||
39 | + | ||
40 | + <!-- 时间滚动输出 level为 DEBUG 日志 --> | ||
41 | + <appender name="DEBUG_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
42 | + <!-- 正在记录的日志文件的路径及文件名 --> | ||
43 | + <file>${log.path}/log_debug.log</file> | ||
44 | + <!--日志文件输出格式--> | ||
45 | + <encoder> | ||
46 | + <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern> | ||
47 | + <charset>UTF-8</charset> <!-- 设置字符集 --> | ||
48 | + </encoder> | ||
49 | + <!-- 日志记录器的滚动策略,按日期,按大小记录 --> | ||
50 | + <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | ||
51 | + <!-- 日志归档 --> | ||
52 | + <fileNamePattern>${log.path}/debug/log-debug-%d{yyyy-MM-dd}.%i.log</fileNamePattern> | ||
53 | + <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> | ||
54 | + <maxFileSize>100MB</maxFileSize> | ||
55 | + </timeBasedFileNamingAndTriggeringPolicy> | ||
56 | + <!--日志文件保留天数--> | ||
57 | + <maxHistory>15</maxHistory> | ||
58 | + </rollingPolicy> | ||
59 | + <!-- 此日志文件只记录debug级别的 --> | ||
60 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
61 | + <level>debug</level> | ||
62 | + <onMatch>ACCEPT</onMatch> | ||
63 | + <onMismatch>DENY</onMismatch> | ||
64 | + </filter> | ||
65 | + </appender> | ||
66 | + | ||
67 | + <!-- 时间滚动输出 level为 INFO 日志 --> | ||
68 | + <appender name="INFO_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
69 | + <!-- 正在记录的日志文件的路径及文件名 --> | ||
70 | + <file>${log.path}/log_info.log</file> | ||
71 | + <!--日志文件输出格式--> | ||
72 | + <encoder> | ||
73 | + <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern> | ||
74 | + <charset>UTF-8</charset> | ||
75 | + </encoder> | ||
76 | + <!-- 日志记录器的滚动策略,按日期,按大小记录 --> | ||
77 | + <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | ||
78 | + <!-- 每天日志归档路径以及格式 --> | ||
79 | + <fileNamePattern>${log.path}/info/log-info-%d{yyyy-MM-dd}.%i.log</fileNamePattern> | ||
80 | + <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> | ||
81 | + <maxFileSize>100MB</maxFileSize> | ||
82 | + </timeBasedFileNamingAndTriggeringPolicy> | ||
83 | + <!--日志文件保留天数--> | ||
84 | + <maxHistory>15</maxHistory> | ||
85 | + </rollingPolicy> | ||
86 | + <!-- 此日志文件只记录info级别的 --> | ||
87 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
88 | + <level>info</level> | ||
89 | + <onMatch>ACCEPT</onMatch> | ||
90 | + <onMismatch>DENY</onMismatch> | ||
91 | + </filter> | ||
92 | + </appender> | ||
93 | + | ||
94 | + <!-- 时间滚动输出 level为 WARN 日志 --> | ||
95 | + <appender name="WARN_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
96 | + <!-- 正在记录的日志文件的路径及文件名 --> | ||
97 | + <file>${log.path}/log_warn.log</file> | ||
98 | + <!--日志文件输出格式--> | ||
99 | + <encoder> | ||
100 | + <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern> | ||
101 | + <charset>UTF-8</charset> <!-- 此处设置字符集 --> | ||
102 | + </encoder> | ||
103 | + <!-- 日志记录器的滚动策略,按日期,按大小记录 --> | ||
104 | + <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | ||
105 | + <fileNamePattern>${log.path}/warn/log-warn-%d{yyyy-MM-dd}.%i.log</fileNamePattern> | ||
106 | + <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> | ||
107 | + <maxFileSize>100MB</maxFileSize> | ||
108 | + </timeBasedFileNamingAndTriggeringPolicy> | ||
109 | + <!--日志文件保留天数--> | ||
110 | + <maxHistory>15</maxHistory> | ||
111 | + </rollingPolicy> | ||
112 | + <!-- 此日志文件只记录warn级别的 --> | ||
113 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
114 | + <level>warn</level> | ||
115 | + <onMatch>ACCEPT</onMatch> | ||
116 | + <onMismatch>DENY</onMismatch> | ||
117 | + </filter> | ||
118 | + </appender> | ||
119 | + | ||
120 | + | ||
121 | + <!-- 时间滚动输出 level为 ERROR 日志 --> | ||
122 | + <appender name="ERROR_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
123 | + <!-- 正在记录的日志文件的路径及文件名 --> | ||
124 | + <file>${log.path}/log_error.log</file> | ||
125 | + <!--日志文件输出格式--> | ||
126 | + <encoder> | ||
127 | + <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern> | ||
128 | + <charset>UTF-8</charset> <!-- 此处设置字符集 --> | ||
129 | + </encoder> | ||
130 | + <!-- 日志记录器的滚动策略,按日期,按大小记录 --> | ||
131 | + <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | ||
132 | + <fileNamePattern>${log.path}/error/log-error-%d{yyyy-MM-dd}.%i.log</fileNamePattern> | ||
133 | + <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> | ||
134 | + <maxFileSize>100MB</maxFileSize> | ||
135 | + </timeBasedFileNamingAndTriggeringPolicy> | ||
136 | + <!--日志文件保留天数--> | ||
137 | + <maxHistory>15</maxHistory> | ||
138 | + </rollingPolicy> | ||
139 | + <!-- 此日志文件只记录ERROR级别的 --> | ||
140 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
141 | + <level>ERROR</level> | ||
142 | + <onMatch>ACCEPT</onMatch> | ||
143 | + <onMismatch>DENY</onMismatch> | ||
144 | + </filter> | ||
145 | + </appender> | ||
146 | + | ||
147 | + <!-- 时间滚动输出 level为 trace 日志 --> | ||
148 | + <appender name="TRACE_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
149 | + <!-- 正在记录的日志文件的路径及文件名 --> | ||
150 | + <file>${log.path}/log_trace.log</file> | ||
151 | + <!--日志文件输出格式--> | ||
152 | + <encoder> | ||
153 | + <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern> | ||
154 | + <charset>UTF-8</charset> <!-- 此处设置字符集 --> | ||
155 | + </encoder> | ||
156 | + <!-- 日志记录器的滚动策略,按日期,按大小记录 --> | ||
157 | + <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | ||
158 | + <fileNamePattern>${log.path}/trace/log-trace-%d{yyyy-MM-dd}.%i.log</fileNamePattern> | ||
159 | + <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> | ||
160 | + <maxFileSize>100MB</maxFileSize> | ||
161 | + </timeBasedFileNamingAndTriggeringPolicy> | ||
162 | + <!--日志文件保留天数--> | ||
163 | + <maxHistory>15</maxHistory> | ||
164 | + </rollingPolicy> | ||
165 | + <!-- 此日志文件只记录trace级别的 --> | ||
166 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
167 | + <level>TRACE</level> | ||
168 | + <onMatch>ACCEPT</onMatch> | ||
169 | + <onMismatch>DENY</onMismatch> | ||
170 | + </filter> | ||
171 | + </appender> | ||
172 | + | ||
173 | + | ||
174 | + <!-- | ||
175 | + <logger>用来设置某一个包或者具体的某一个类的日志打印级别、 | ||
176 | + 以及指定<appender>。<logger>仅有一个name属性, | ||
177 | + 一个可选的level和一个可选的addtivity属性。 | ||
178 | + name:用来指定受此logger约束的某一个包或者具体的某一个类。 | ||
179 | + level:用来设置打印级别,大小写无关:TRACE, DEBUG, INFO, WARN, ERROR, ALL 和 OFF, | ||
180 | + 还有一个特俗值INHERITED或者同义词NULL,代表强制执行上级的级别。 | ||
181 | + 如果未设置此属性,那么当前logger将会继承上级的级别。 | ||
182 | + addtivity:是否向上级logger传递打印信息。默认是true。 | ||
183 | + --> | ||
184 | + <!--<logger name="org.springframework.web" level="info"/>--> | ||
185 | + <!--<logger name="org.springframework.scheduling.annotation.ScheduledAnnotationBeanPostProcessor" level="INFO"/>--> | ||
186 | + <!-- | ||
187 | + 使用mybatis的时候,sql语句是debug下才会打印,而这里我们只配置了info,所以想要查看sql语句的话,有以下两种操作: | ||
188 | + 第一种把<root level="info">改成<root level="DEBUG">这样就会打印sql,不过这样日志那边会出现很多其他消息 | ||
189 | + 第二种就是单独给dao下目录配置debug模式,代码如下,这样配置sql语句会打印,其他还是正常info级别: | ||
190 | + --> | ||
191 | + | ||
192 | + | ||
193 | + <!-- | ||
194 | + root节点是必选节点,用来指定最基础的日志输出级别,只有一个level属性 | ||
195 | + level:用来设置打印级别,大小写无关:TRACE, DEBUG, INFO, WARN, ERROR, ALL 和 OFF, | ||
196 | + 不能设置为INHERITED或者同义词NULL。默认是DEBUG | ||
197 | + 可以包含零个或多个元素,标识这个appender将会添加到这个logger。 | ||
198 | + --> | ||
199 | + <!--<logger name="com.tianbo.analysis" level="trace">--> | ||
200 | + <!--<appender-ref ref="CONSOLE" />--> | ||
201 | + <!--<appender-ref ref="TRACE_FILE" />--> | ||
202 | + <!--<appender-ref ref="DEBUG_FILE" />--> | ||
203 | + <!--<appender-ref ref="INFO_FILE" />--> | ||
204 | + <!--<appender-ref ref="WARN_FILE" />--> | ||
205 | + <!--<appender-ref ref="ERROR_FILE" />--> | ||
206 | + <!--</logger>--> | ||
207 | + | ||
208 | + <!--开发环境:打印控制台--> | ||
209 | + <springProfile name="dev"> | ||
210 | + <logger name="org.springframework" level="info"/> | ||
211 | + <logger name="com.sunyo.wlpt.nmms.mapper" level="debug"> | ||
212 | + <appender-ref ref="CONSOLE" /> | ||
213 | + <appender-ref ref="DEBUG_FILE" /> | ||
214 | + </logger> | ||
215 | + <logger name="org.apache.tomcat" level="info" /> | ||
216 | + <root level="info"> | ||
217 | + <appender-ref ref="CONSOLE" /> | ||
218 | + <appender-ref ref="TRACE_FILE" /> | ||
219 | + <appender-ref ref="DEBUG_FILE" /> | ||
220 | + <appender-ref ref="INFO_FILE" /> | ||
221 | + <appender-ref ref="WARN_FILE" /> | ||
222 | + <appender-ref ref="ERROR_FILE" /> | ||
223 | + </root> | ||
224 | + </springProfile> | ||
225 | + | ||
226 | + <!--生产环境:输出到文件--> | ||
227 | + <springProfile name="pro"> | ||
228 | + <logger name="org.springframework" level="INFO"/> | ||
229 | + <root level="info"> | ||
230 | + <appender-ref ref="CONSOLE" /> | ||
231 | + <appender-ref ref="DEBUG_FILE" /> | ||
232 | + <appender-ref ref="INFO_FILE" /> | ||
233 | + <appender-ref ref="ERROR_FILE" /> | ||
234 | + <appender-ref ref="WARN_FILE" /> | ||
235 | + <appender-ref ref="TRACE_FILE" /> | ||
236 | + </root> | ||
237 | + </springProfile> | ||
238 | + | ||
239 | +</configuration> |
config/logback-spring.xml
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<configuration scan="ture" scanPeriod="60 seconds" debug="false"> | ||
3 | + | ||
4 | + <springProperty scope="context" name="appname" source="logback.appname"/> | ||
5 | + <springProperty scope="context" name="logdir" source="logback.logdir"/> | ||
6 | + <!--文件名--> | ||
7 | + <contextName>${appname}</contextName> | ||
8 | + | ||
9 | + <!--输出到控制面板--> | ||
10 | + <appender name="consoleLog1" class="ch.qos.logback.core.ConsoleAppender"> | ||
11 | + <!-- layout输出方式输出--> | ||
12 | + <layout class="ch.qos.logback.classic.PatternLayout"> | ||
13 | + <pattern>%d [%thread] %-5level %logger{36} - %msg%n</pattern> | ||
14 | + </layout> | ||
15 | + </appender> | ||
16 | + <!--输出到控制面板--> | ||
17 | + <appender name="consoleLog" class="ch.qos.logback.core.ConsoleAppender"> | ||
18 | + <encoder> | ||
19 | + <pattern>%d [%thread] %-5level %logger{36} - %msg%n</pattern> | ||
20 | + </encoder> | ||
21 | + </appender> | ||
22 | + <!--输出info级别日志--> | ||
23 | + <appender name="fileInfoLog" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
24 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
25 | + <!--过滤 Error--> | ||
26 | + <level>ERROR</level> | ||
27 | + <!--匹配到就禁止--> | ||
28 | + <onMatch>DENY</onMatch> | ||
29 | + <!--没有匹配到就允许--> | ||
30 | + <onMismatch>ACCEPT</onMismatch> | ||
31 | + </filter> | ||
32 | + <!--<File>../logs</File>--> | ||
33 | + <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | ||
34 | + <FileNamePattern>${logdir}/info.${appname}.%d{yyyy-MM-dd}.log</FileNamePattern> | ||
35 | + <maxHistory>100</maxHistory> | ||
36 | + <totalSizeCap>100MB</totalSizeCap> | ||
37 | + </rollingPolicy> | ||
38 | + <encoder> | ||
39 | + <charset>UTF-8</charset> | ||
40 | + <pattern>%d [%thread] %-5level %logger{36} %line - %msg%n</pattern> | ||
41 | + </encoder> | ||
42 | + </appender> | ||
43 | + <!--输出Error级别日志--> | ||
44 | + <!--<appender name="fileErrorLog" class="ch.qos.logback.core.rolling.RollingFileAppender">--> | ||
45 | + <!--<filter class="ch.qos.logback.classic.filter.LevelFilter">--> | ||
46 | + <!--<!–过滤 Error –>--> | ||
47 | + <!--<level>ERROR</level>--> | ||
48 | + <!--</filter>--> | ||
49 | + <!--<!–<File>../logs</File>–>--> | ||
50 | + <!--<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">--> | ||
51 | + <!--<FileNamePattern>${logdir}/error.${appname}.%d{yyyy-MM-dd}.log</FileNamePattern>--> | ||
52 | + <!--<maxHistory>100</maxHistory>--> | ||
53 | + <!--<totalSizeCap>100MB</totalSizeCap>--> | ||
54 | + <!--</rollingPolicy>--> | ||
55 | + <!--<encoder>--> | ||
56 | + <!--<charset>UTF-8</charset>--> | ||
57 | + <!--<pattern>%d [%thread] %-5level %logger{36} %line - %msg%n</pattern>--> | ||
58 | + <!--</encoder>--> | ||
59 | + <!--</appender>--> | ||
60 | + <!--监控下列类的所有日志,定义输出级别--> | ||
61 | + <logger name="java.sql.PreparedStatement" level="DEBUG" additivity="false"> | ||
62 | + <appender-ref ref="consoleLog"/> | ||
63 | + </logger> | ||
64 | + <logger name="java.sql.Connection" level="DEBUG" additivity="false"> | ||
65 | + <appender-ref ref="consoleLog"/> | ||
66 | + </logger> | ||
67 | + <logger name="java.sql.Statement" level="DEBUG" additivity="false"> | ||
68 | + <appender-ref ref="consoleLog"/> | ||
69 | + </logger> | ||
70 | + <logger name="com.ibatis" level="DEBUG" additivity="false"> | ||
71 | + <appender-ref ref="consoleLog"/> | ||
72 | + </logger> | ||
73 | + <logger name="com.ibatis.common.jdbc.SimpleDataSource" level="DEBUG" additivity="false"> | ||
74 | + <appender-ref ref="consoleLog"/> | ||
75 | + </logger> | ||
76 | + <logger name="com.ibatis.common.jdbc.ScriptRunner" level="DEBUG" additivity="false"> | ||
77 | + <appender-ref ref="consoleLog"/> | ||
78 | + </logger> | ||
79 | + <logger name="com.ibatis.sqlmap.engine.impl.SqlMapClientDelegate" level="DEBUG" additivity="false"> | ||
80 | + <appender-ref ref="consoleLog"/> | ||
81 | + </logger> | ||
82 | + <!--输出--> | ||
83 | + <root level="INFO"> | ||
84 | + <appender-ref ref="consoleLog"/> | ||
85 | + <!--<appender-ref ref="consoleLog"/>--> | ||
86 | + <appender-ref ref="fileInfoLog"/> | ||
87 | + <!--<appender-ref ref="fileErrorLog"/>--> | ||
88 | + </root> | ||
89 | + | ||
90 | +</configuration> |
excel/a.jpg
0 → 100644

140.4 KB
lib/ojdbc6.jar
0 → 100644
不能预览此文件类型
logs/log_debug.log
0 → 100644
logs/log_error.log
0 → 100644
1 | +2020-06-09 14:34:18.184 [http-nio-9011-exec-5] ERROR o.s.c.c.d.health.DiscoveryClientHealthIndicator - Error | ||
2 | +org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eurekaHealthCheckHandler' defined in class path resource [org/springframework/cloud/netflix/eureka/EurekaDiscoveryClientConfiguration$EurekaHealthCheckHandlerConfiguration.class]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthIndicatorAutoConfiguration': Unexpected exception during bean creation; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'java.util.Map<?, ?>' available: expected single matching bean but found 3: pageHelperProperties,systemProperties,systemEnvironment | ||
3 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1778) | ||
4 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593) | ||
5 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) | ||
6 | + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) | ||
7 | + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) | ||
8 | + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) | ||
9 | + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) | ||
10 | + at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277) | ||
11 | + at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1251) | ||
12 | + at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1171) | ||
13 | + at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:857) | ||
14 | + at org.springframework.beans.factory.support.ConstructorResolver.resolvePreparedArguments(ConstructorResolver.java:804) | ||
15 | + at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:430) | ||
16 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321) | ||
17 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160) | ||
18 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) | ||
19 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) | ||
20 | + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$1(AbstractBeanFactory.java:356) | ||
21 | + at org.springframework.cloud.context.scope.GenericScope$BeanLifecycleWrapper.getBean(GenericScope.java:389) | ||
22 | + at org.springframework.cloud.context.scope.GenericScope.get(GenericScope.java:186) | ||
23 | + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:353) | ||
24 | + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) | ||
25 | + at org.springframework.aop.target.SimpleBeanTargetSource.getTarget(SimpleBeanTargetSource.java:35) | ||
26 | + at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:192) | ||
27 | + at com.sun.proxy.$Proxy112.getApplications(Unknown Source) | ||
28 | + at org.springframework.cloud.netflix.eureka.EurekaDiscoveryClient.getServices(EurekaDiscoveryClient.java:86) | ||
29 | + at org.springframework.cloud.client.discovery.composite.CompositeDiscoveryClient.getServices(CompositeDiscoveryClient.java:67) | ||
30 | + at org.springframework.cloud.client.discovery.health.DiscoveryClientHealthIndicator.health(DiscoveryClientHealthIndicator.java:69) | ||
31 | + at org.springframework.cloud.client.discovery.health.DiscoveryCompositeHealthIndicator$Holder.health(DiscoveryCompositeHealthIndicator.java:67) | ||
32 | + at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:95) | ||
33 | + at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:95) | ||
34 | + at org.springframework.boot.actuate.health.HealthEndpoint.health(HealthEndpoint.java:50) | ||
35 | + at org.springframework.boot.actuate.health.HealthEndpointWebExtension.health(HealthEndpointWebExtension.java:53) | ||
36 | + at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source) | ||
37 | + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | ||
38 | + at java.lang.reflect.Method.invoke(Method.java:498) | ||
39 | + at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:282) | ||
40 | + at org.springframework.boot.actuate.endpoint.invoke.reflect.ReflectiveOperationInvoker.invoke(ReflectiveOperationInvoker.java:76) | ||
41 | + at org.springframework.boot.actuate.endpoint.annotation.AbstractDiscoveredOperation.invoke(AbstractDiscoveredOperation.java:60) | ||
42 | + at org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$ServletWebOperationAdapter.handle(AbstractWebMvcEndpointHandlerMapping.java:278) | ||
43 | + at org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$OperationHandler.handle(AbstractWebMvcEndpointHandlerMapping.java:334) | ||
44 | + at sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source) | ||
45 | + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | ||
46 | + at java.lang.reflect.Method.invoke(Method.java:498) | ||
47 | + at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) | ||
48 | + at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) | ||
49 | + at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104) | ||
50 | + at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892) | ||
51 | + at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797) | ||
52 | + at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) | ||
53 | + at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1039) | ||
54 | + at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942) | ||
55 | + at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005) | ||
56 | + at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:897) | ||
57 | + at javax.servlet.http.HttpServlet.service(HttpServlet.java:634) | ||
58 | + at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882) | ||
59 | + at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) | ||
60 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) | ||
61 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
62 | + at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) | ||
63 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
64 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
65 | + at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123) | ||
66 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
67 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
68 | + at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:88) | ||
69 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
70 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
71 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
72 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320) | ||
73 | + at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127) | ||
74 | + at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91) | ||
75 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
76 | + at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119) | ||
77 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
78 | + at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137) | ||
79 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
80 | + at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111) | ||
81 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
82 | + at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170) | ||
83 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
84 | + at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) | ||
85 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
86 | + at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116) | ||
87 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
88 | + at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:74) | ||
89 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
90 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
91 | + at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105) | ||
92 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
93 | + at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56) | ||
94 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
95 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
96 | + at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215) | ||
97 | + at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178) | ||
98 | + at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357) | ||
99 | + at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270) | ||
100 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
101 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
102 | + at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) | ||
103 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
104 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
105 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
106 | + at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92) | ||
107 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
108 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
109 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
110 | + at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93) | ||
111 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
112 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
113 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
114 | + at org.springframework.cloud.sleuth.instrument.web.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.java:50) | ||
115 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
116 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
117 | + at brave.servlet.TracingFilter.doFilter(TracingFilter.java:99) | ||
118 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
119 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
120 | + at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:114) | ||
121 | + at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:104) | ||
122 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
123 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
124 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
125 | + at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200) | ||
126 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
127 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
128 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
129 | + at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) | ||
130 | + at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) | ||
131 | + at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) | ||
132 | + at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) | ||
133 | + at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) | ||
134 | + at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) | ||
135 | + at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) | ||
136 | + at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) | ||
137 | + at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) | ||
138 | + at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853) | ||
139 | + at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587) | ||
140 | + at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) | ||
141 | + at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) | ||
142 | + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) | ||
143 | + at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) | ||
144 | + at java.lang.Thread.run(Thread.java:748) | ||
145 | +Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthIndicatorAutoConfiguration': Unexpected exception during bean creation; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'java.util.Map<?, ?>' available: expected single matching bean but found 3: pageHelperProperties,systemProperties,systemEnvironment | ||
146 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:528) | ||
147 | + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) | ||
148 | + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) | ||
149 | + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) | ||
150 | + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) | ||
151 | + at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:392) | ||
152 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321) | ||
153 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160) | ||
154 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) | ||
155 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) | ||
156 | + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) | ||
157 | + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) | ||
158 | + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) | ||
159 | + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) | ||
160 | + at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:606) | ||
161 | + at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:594) | ||
162 | + at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1226) | ||
163 | + at org.springframework.cloud.netflix.eureka.EurekaHealthCheckHandler.afterPropertiesSet(EurekaHealthCheckHandler.java:80) | ||
164 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1837) | ||
165 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1774) | ||
166 | + ... 141 common frames omitted | ||
167 | +Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'java.util.Map<?, ?>' available: expected single matching bean but found 3: pageHelperProperties,systemProperties,systemEnvironment | ||
168 | + at org.springframework.beans.factory.config.DependencyDescriptor.resolveNotUnique(DependencyDescriptor.java:221) | ||
169 | + at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1229) | ||
170 | + at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1171) | ||
171 | + at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:857) | ||
172 | + at org.springframework.beans.factory.support.ConstructorResolver.resolvePreparedArguments(ConstructorResolver.java:804) | ||
173 | + at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:143) | ||
174 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1341) | ||
175 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1176) | ||
176 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) | ||
177 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) | ||
178 | + ... 160 common frames omitted | ||
179 | +2020-06-09 14:34:21.738 [http-nio-9011-exec-5] ERROR c.n.d.s.t.decorator.RedirectingEurekaHttpClient - Request execution error. endpoint=DefaultEndpoint{ serviceUrl='http://192.168.1.53:12345/eureka/} | ||
180 | +javax.ws.rs.WebApplicationException: com.fasterxml.jackson.core.JsonParseException: processing aborted | ||
181 | + at [Source: (GZIPInputStream); line: 1, column: 18] | ||
182 | + at com.netflix.discovery.provider.DiscoveryJerseyProvider.readFrom(DiscoveryJerseyProvider.java:110) | ||
183 | + at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:634) | ||
184 | + at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:586) | ||
185 | + at com.netflix.discovery.shared.transport.jersey.AbstractJerseyEurekaHttpClient.getApplicationsInternal(AbstractJerseyEurekaHttpClient.java:198) | ||
186 | + at com.netflix.discovery.shared.transport.jersey.AbstractJerseyEurekaHttpClient.getApplications(AbstractJerseyEurekaHttpClient.java:165) | ||
187 | + at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$6.execute(EurekaHttpClientDecorator.java:137) | ||
188 | + at com.netflix.discovery.shared.transport.decorator.MetricsCollectingEurekaHttpClient.execute(MetricsCollectingEurekaHttpClient.java:73) | ||
189 | + at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getApplications(EurekaHttpClientDecorator.java:134) | ||
190 | + at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$6.execute(EurekaHttpClientDecorator.java:137) | ||
191 | + at com.netflix.discovery.shared.transport.decorator.RedirectingEurekaHttpClient.executeOnNewServer(RedirectingEurekaHttpClient.java:118) | ||
192 | + at com.netflix.discovery.shared.transport.decorator.RedirectingEurekaHttpClient.execute(RedirectingEurekaHttpClient.java:79) | ||
193 | + at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getApplications(EurekaHttpClientDecorator.java:134) | ||
194 | + at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$6.execute(EurekaHttpClientDecorator.java:137) | ||
195 | + at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:120) | ||
196 | + at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getApplications(EurekaHttpClientDecorator.java:134) | ||
197 | + at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$6.execute(EurekaHttpClientDecorator.java:137) | ||
198 | + at com.netflix.discovery.shared.transport.decorator.SessionedEurekaHttpClient.execute(SessionedEurekaHttpClient.java:77) | ||
199 | + at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getApplications(EurekaHttpClientDecorator.java:134) | ||
200 | + at com.netflix.discovery.DiscoveryClient.getAndStoreFullRegistry(DiscoveryClient.java:1069) | ||
201 | + at com.netflix.discovery.DiscoveryClient.fetchRegistry(DiscoveryClient.java:983) | ||
202 | + at com.netflix.discovery.DiscoveryClient.<init>(DiscoveryClient.java:430) | ||
203 | + at com.netflix.discovery.DiscoveryClient.<init>(DiscoveryClient.java:276) | ||
204 | + at com.netflix.discovery.DiscoveryClient.<init>(DiscoveryClient.java:272) | ||
205 | + at org.springframework.cloud.netflix.eureka.CloudEurekaClient.<init>(CloudEurekaClient.java:67) | ||
206 | + at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration.eurekaClient(EurekaClientAutoConfiguration.java:330) | ||
207 | + at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$3ddf3654.CGLIB$eurekaClient$0(<generated>) | ||
208 | + at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$3ddf3654$$FastClassBySpringCGLIB$$96c26bd7.invoke(<generated>) | ||
209 | + at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) | ||
210 | + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) | ||
211 | + at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$3ddf3654.eurekaClient(<generated>) | ||
212 | + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | ||
213 | + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) | ||
214 | + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | ||
215 | + at java.lang.reflect.Method.invoke(Method.java:498) | ||
216 | + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) | ||
217 | + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) | ||
218 | + at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607) | ||
219 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321) | ||
220 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160) | ||
221 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) | ||
222 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) | ||
223 | + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$1(AbstractBeanFactory.java:356) | ||
224 | + at org.springframework.cloud.context.scope.GenericScope$BeanLifecycleWrapper.getBean(GenericScope.java:389) | ||
225 | + at org.springframework.cloud.context.scope.GenericScope.get(GenericScope.java:186) | ||
226 | + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:353) | ||
227 | + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) | ||
228 | + at org.springframework.aop.target.SimpleBeanTargetSource.getTarget(SimpleBeanTargetSource.java:35) | ||
229 | + at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:192) | ||
230 | + at com.sun.proxy.$Proxy112.getInstanceRemoteStatus(Unknown Source) | ||
231 | + at org.springframework.cloud.netflix.eureka.EurekaHealthIndicator.getStatus(EurekaHealthIndicator.java:70) | ||
232 | + at org.springframework.cloud.netflix.eureka.EurekaHealthIndicator.health(EurekaHealthIndicator.java:64) | ||
233 | + at org.springframework.cloud.client.discovery.health.DiscoveryCompositeHealthIndicator$Holder.health(DiscoveryCompositeHealthIndicator.java:67) | ||
234 | + at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:95) | ||
235 | + at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:95) | ||
236 | + at org.springframework.boot.actuate.health.HealthEndpoint.health(HealthEndpoint.java:50) | ||
237 | + at org.springframework.boot.actuate.health.HealthEndpointWebExtension.health(HealthEndpointWebExtension.java:53) | ||
238 | + at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source) | ||
239 | + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | ||
240 | + at java.lang.reflect.Method.invoke(Method.java:498) | ||
241 | + at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:282) | ||
242 | + at org.springframework.boot.actuate.endpoint.invoke.reflect.ReflectiveOperationInvoker.invoke(ReflectiveOperationInvoker.java:76) | ||
243 | + at org.springframework.boot.actuate.endpoint.annotation.AbstractDiscoveredOperation.invoke(AbstractDiscoveredOperation.java:60) | ||
244 | + at org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$ServletWebOperationAdapter.handle(AbstractWebMvcEndpointHandlerMapping.java:278) | ||
245 | + at org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$OperationHandler.handle(AbstractWebMvcEndpointHandlerMapping.java:334) | ||
246 | + at sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source) | ||
247 | + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | ||
248 | + at java.lang.reflect.Method.invoke(Method.java:498) | ||
249 | + at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) | ||
250 | + at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) | ||
251 | + at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104) | ||
252 | + at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892) | ||
253 | + at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797) | ||
254 | + at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) | ||
255 | + at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1039) | ||
256 | + at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942) | ||
257 | + at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005) | ||
258 | + at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:897) | ||
259 | + at javax.servlet.http.HttpServlet.service(HttpServlet.java:634) | ||
260 | + at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882) | ||
261 | + at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) | ||
262 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) | ||
263 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
264 | + at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) | ||
265 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
266 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
267 | + at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123) | ||
268 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
269 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
270 | + at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:88) | ||
271 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
272 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
273 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
274 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320) | ||
275 | + at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127) | ||
276 | + at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91) | ||
277 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
278 | + at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119) | ||
279 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
280 | + at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137) | ||
281 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
282 | + at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111) | ||
283 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
284 | + at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170) | ||
285 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
286 | + at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) | ||
287 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
288 | + at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116) | ||
289 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
290 | + at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:74) | ||
291 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
292 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
293 | + at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105) | ||
294 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
295 | + at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56) | ||
296 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
297 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
298 | + at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215) | ||
299 | + at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178) | ||
300 | + at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357) | ||
301 | + at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270) | ||
302 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
303 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
304 | + at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) | ||
305 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
306 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
307 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
308 | + at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92) | ||
309 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
310 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
311 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
312 | + at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93) | ||
313 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
314 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
315 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
316 | + at org.springframework.cloud.sleuth.instrument.web.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.java:50) | ||
317 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
318 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
319 | + at brave.servlet.TracingFilter.doFilter(TracingFilter.java:99) | ||
320 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
321 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
322 | + at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:114) | ||
323 | + at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:104) | ||
324 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
325 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
326 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
327 | + at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200) | ||
328 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
329 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
330 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
331 | + at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) | ||
332 | + at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) | ||
333 | + at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) | ||
334 | + at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) | ||
335 | + at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) | ||
336 | + at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) | ||
337 | + at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) | ||
338 | + at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) | ||
339 | + at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) | ||
340 | + at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853) | ||
341 | + at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587) | ||
342 | + at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) | ||
343 | + at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) | ||
344 | + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) | ||
345 | + at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) | ||
346 | + at java.lang.Thread.run(Thread.java:748) | ||
347 | +Caused by: com.fasterxml.jackson.core.JsonParseException: processing aborted | ||
348 | + at [Source: (GZIPInputStream); line: 1, column: 18] | ||
349 | + at com.netflix.discovery.converters.EurekaJacksonCodec$ApplicationsDeserializer.deserialize(EurekaJacksonCodec.java:789) | ||
350 | + at com.netflix.discovery.converters.EurekaJacksonCodec$ApplicationsDeserializer.deserialize(EurekaJacksonCodec.java:775) | ||
351 | + at com.fasterxml.jackson.databind.ObjectReader._unwrapAndDeserialize(ObjectReader.java:1703) | ||
352 | + at com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:1608) | ||
353 | + at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:1188) | ||
354 | + at com.netflix.discovery.converters.EurekaJacksonCodec.readValue(EurekaJacksonCodec.java:197) | ||
355 | + at com.netflix.discovery.converters.wrappers.CodecWrappers$LegacyJacksonJson.decode(CodecWrappers.java:314) | ||
356 | + at com.netflix.discovery.provider.DiscoveryJerseyProvider.readFrom(DiscoveryJerseyProvider.java:103) | ||
357 | + ... 164 common frames omitted | ||
358 | +2020-06-09 14:34:21.753 [http-nio-9011-exec-5] ERROR com.netflix.discovery.DiscoveryClient - DiscoveryClient_CGONMS-ARRIVAL/192.168.1.17:9011 - was unable to refresh its cache! status = Cannot execute request on any known server | ||
359 | +com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server | ||
360 | + at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:112) | ||
361 | + at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getApplications(EurekaHttpClientDecorator.java:134) | ||
362 | + at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$6.execute(EurekaHttpClientDecorator.java:137) | ||
363 | + at com.netflix.discovery.shared.transport.decorator.SessionedEurekaHttpClient.execute(SessionedEurekaHttpClient.java:77) | ||
364 | + at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getApplications(EurekaHttpClientDecorator.java:134) | ||
365 | + at com.netflix.discovery.DiscoveryClient.getAndStoreFullRegistry(DiscoveryClient.java:1069) | ||
366 | + at com.netflix.discovery.DiscoveryClient.fetchRegistry(DiscoveryClient.java:983) | ||
367 | + at com.netflix.discovery.DiscoveryClient.<init>(DiscoveryClient.java:430) | ||
368 | + at com.netflix.discovery.DiscoveryClient.<init>(DiscoveryClient.java:276) | ||
369 | + at com.netflix.discovery.DiscoveryClient.<init>(DiscoveryClient.java:272) | ||
370 | + at org.springframework.cloud.netflix.eureka.CloudEurekaClient.<init>(CloudEurekaClient.java:67) | ||
371 | + at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration.eurekaClient(EurekaClientAutoConfiguration.java:330) | ||
372 | + at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$3ddf3654.CGLIB$eurekaClient$0(<generated>) | ||
373 | + at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$3ddf3654$$FastClassBySpringCGLIB$$96c26bd7.invoke(<generated>) | ||
374 | + at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) | ||
375 | + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) | ||
376 | + at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$3ddf3654.eurekaClient(<generated>) | ||
377 | + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | ||
378 | + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) | ||
379 | + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | ||
380 | + at java.lang.reflect.Method.invoke(Method.java:498) | ||
381 | + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) | ||
382 | + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) | ||
383 | + at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607) | ||
384 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321) | ||
385 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160) | ||
386 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) | ||
387 | + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) | ||
388 | + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$1(AbstractBeanFactory.java:356) | ||
389 | + at org.springframework.cloud.context.scope.GenericScope$BeanLifecycleWrapper.getBean(GenericScope.java:389) | ||
390 | + at org.springframework.cloud.context.scope.GenericScope.get(GenericScope.java:186) | ||
391 | + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:353) | ||
392 | + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) | ||
393 | + at org.springframework.aop.target.SimpleBeanTargetSource.getTarget(SimpleBeanTargetSource.java:35) | ||
394 | + at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:192) | ||
395 | + at com.sun.proxy.$Proxy112.getInstanceRemoteStatus(Unknown Source) | ||
396 | + at org.springframework.cloud.netflix.eureka.EurekaHealthIndicator.getStatus(EurekaHealthIndicator.java:70) | ||
397 | + at org.springframework.cloud.netflix.eureka.EurekaHealthIndicator.health(EurekaHealthIndicator.java:64) | ||
398 | + at org.springframework.cloud.client.discovery.health.DiscoveryCompositeHealthIndicator$Holder.health(DiscoveryCompositeHealthIndicator.java:67) | ||
399 | + at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:95) | ||
400 | + at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:95) | ||
401 | + at org.springframework.boot.actuate.health.HealthEndpoint.health(HealthEndpoint.java:50) | ||
402 | + at org.springframework.boot.actuate.health.HealthEndpointWebExtension.health(HealthEndpointWebExtension.java:53) | ||
403 | + at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source) | ||
404 | + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | ||
405 | + at java.lang.reflect.Method.invoke(Method.java:498) | ||
406 | + at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:282) | ||
407 | + at org.springframework.boot.actuate.endpoint.invoke.reflect.ReflectiveOperationInvoker.invoke(ReflectiveOperationInvoker.java:76) | ||
408 | + at org.springframework.boot.actuate.endpoint.annotation.AbstractDiscoveredOperation.invoke(AbstractDiscoveredOperation.java:60) | ||
409 | + at org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$ServletWebOperationAdapter.handle(AbstractWebMvcEndpointHandlerMapping.java:278) | ||
410 | + at org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$OperationHandler.handle(AbstractWebMvcEndpointHandlerMapping.java:334) | ||
411 | + at sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source) | ||
412 | + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | ||
413 | + at java.lang.reflect.Method.invoke(Method.java:498) | ||
414 | + at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) | ||
415 | + at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) | ||
416 | + at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104) | ||
417 | + at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892) | ||
418 | + at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797) | ||
419 | + at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) | ||
420 | + at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1039) | ||
421 | + at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942) | ||
422 | + at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005) | ||
423 | + at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:897) | ||
424 | + at javax.servlet.http.HttpServlet.service(HttpServlet.java:634) | ||
425 | + at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882) | ||
426 | + at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) | ||
427 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) | ||
428 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
429 | + at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) | ||
430 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
431 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
432 | + at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123) | ||
433 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
434 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
435 | + at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:88) | ||
436 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
437 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
438 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
439 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320) | ||
440 | + at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127) | ||
441 | + at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91) | ||
442 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
443 | + at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119) | ||
444 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
445 | + at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137) | ||
446 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
447 | + at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111) | ||
448 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
449 | + at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170) | ||
450 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
451 | + at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) | ||
452 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
453 | + at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116) | ||
454 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
455 | + at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:74) | ||
456 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
457 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
458 | + at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105) | ||
459 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
460 | + at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56) | ||
461 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
462 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
463 | + at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215) | ||
464 | + at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178) | ||
465 | + at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357) | ||
466 | + at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270) | ||
467 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
468 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
469 | + at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) | ||
470 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
471 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
472 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
473 | + at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92) | ||
474 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
475 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
476 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
477 | + at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93) | ||
478 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
479 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
480 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
481 | + at org.springframework.cloud.sleuth.instrument.web.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.java:50) | ||
482 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
483 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
484 | + at brave.servlet.TracingFilter.doFilter(TracingFilter.java:99) | ||
485 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
486 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
487 | + at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:114) | ||
488 | + at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:104) | ||
489 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
490 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
491 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
492 | + at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200) | ||
493 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
494 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
495 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
496 | + at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) | ||
497 | + at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) | ||
498 | + at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) | ||
499 | + at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) | ||
500 | + at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) | ||
501 | + at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) | ||
502 | + at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) | ||
503 | + at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) | ||
504 | + at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) | ||
505 | + at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853) | ||
506 | + at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587) | ||
507 | + at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) | ||
508 | + at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) | ||
509 | + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) | ||
510 | + at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) | ||
511 | + at java.lang.Thread.run(Thread.java:748) | ||
512 | +2020-06-09 14:34:21.888 [http-nio-9011-exec-5] ERROR o.s.c.sleuth.instrument.web.ExceptionLoggingFilter - Uncaught exception thrown | ||
513 | +org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException: Name is null | ||
514 | + at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1013) | ||
515 | + at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:897) | ||
516 | + at javax.servlet.http.HttpServlet.service(HttpServlet.java:634) | ||
517 | + at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882) | ||
518 | + at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) | ||
519 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) | ||
520 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
521 | + at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) | ||
522 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
523 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
524 | + at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123) | ||
525 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
526 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
527 | + at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:88) | ||
528 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
529 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
530 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
531 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320) | ||
532 | + at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127) | ||
533 | + at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91) | ||
534 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
535 | + at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119) | ||
536 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
537 | + at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137) | ||
538 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
539 | + at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111) | ||
540 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
541 | + at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170) | ||
542 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
543 | + at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) | ||
544 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
545 | + at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116) | ||
546 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
547 | + at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:74) | ||
548 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
549 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
550 | + at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105) | ||
551 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
552 | + at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56) | ||
553 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
554 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
555 | + at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215) | ||
556 | + at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178) | ||
557 | + at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357) | ||
558 | + at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270) | ||
559 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
560 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
561 | + at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) | ||
562 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
563 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
564 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
565 | + at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92) | ||
566 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
567 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
568 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
569 | + at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93) | ||
570 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
571 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
572 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
573 | + at org.springframework.cloud.sleuth.instrument.web.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.java:50) | ||
574 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
575 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
576 | + at brave.servlet.TracingFilter.doFilter(TracingFilter.java:99) | ||
577 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
578 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
579 | + at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:114) | ||
580 | + at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:104) | ||
581 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
582 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
583 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
584 | + at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200) | ||
585 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
586 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
587 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
588 | + at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) | ||
589 | + at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) | ||
590 | + at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) | ||
591 | + at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) | ||
592 | + at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) | ||
593 | + at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) | ||
594 | + at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) | ||
595 | + at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) | ||
596 | + at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) | ||
597 | + at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853) | ||
598 | + at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587) | ||
599 | + at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) | ||
600 | + at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) | ||
601 | + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) | ||
602 | + at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) | ||
603 | + at java.lang.Thread.run(Thread.java:748) | ||
604 | +Caused by: java.lang.NullPointerException: Name is null | ||
605 | + at java.lang.Enum.valueOf(Enum.java:236) | ||
606 | + at org.springframework.http.HttpMethod.valueOf(HttpMethod.java:33) | ||
607 | + at org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$ServletWebOperationAdapter.handle(AbstractWebMvcEndpointHandlerMapping.java:279) | ||
608 | + at org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$OperationHandler.handle(AbstractWebMvcEndpointHandlerMapping.java:334) | ||
609 | + at sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source) | ||
610 | + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | ||
611 | + at java.lang.reflect.Method.invoke(Method.java:498) | ||
612 | + at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) | ||
613 | + at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) | ||
614 | + at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104) | ||
615 | + at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892) | ||
616 | + at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797) | ||
617 | + at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) | ||
618 | + at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1039) | ||
619 | + at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942) | ||
620 | + at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005) | ||
621 | + ... 89 common frames omitted |
logs/log_info.log
0 → 100644
1 | +2020-06-09 12:05:17.221 [main] INFO c.s.wlpt.cgonms.arrival.CgonmsArrivalApplication - The following profiles are active: dev | ||
2 | +2020-06-09 12:05:23.028 [main] INFO o.springframework.cloud.context.scope.GenericScope - BeanFactory id=684cd641-8db0-3d4b-addd-bc9ad9499774 | ||
3 | +2020-06-09 12:05:24.197 [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$34dd2f2f] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) | ||
4 | +2020-06-09 12:05:24.321 [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$50f7322c] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) | ||
5 | +2020-06-09 12:05:25.443 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 9011 (http) | ||
6 | +2020-06-09 12:05:25.489 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-9011"] | ||
7 | +2020-06-09 12:05:25.518 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat] | ||
8 | +2020-06-09 12:05:25.519 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.22] | ||
9 | +2020-06-09 12:05:25.986 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext | ||
10 | +2020-06-09 12:05:25.987 [main] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 8632 ms | ||
11 | +2020-06-09 12:05:26.611 [main] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. | ||
12 | +2020-06-09 12:05:26.657 [main] INFO com.netflix.config.DynamicPropertyFactory - DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@27d73d22 | ||
13 | +2020-06-09 12:05:28.504 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure - Init DruidDataSource | ||
14 | +2020-06-09 12:05:29.015 [main] INFO com.alibaba.druid.pool.DruidDataSource - {dataSource-1} inited | ||
15 | +2020-06-09 12:05:30.941 [main] INFO o.s.b.a.endpoint.web.ServletEndpointRegistrar - Registered '/actuator/jolokia' to jolokia-actuator-endpoint | ||
16 | +2020-06-09 12:05:32.098 [main] INFO o.s.security.web.DefaultSecurityFilterChain - Creating filter chain: any request, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@45f8415b, org.springframework.security.web.context.SecurityContextPersistenceFilter@4c4215d7, org.springframework.security.web.header.HeaderWriterFilter@1d5bb5c, org.springframework.security.web.authentication.logout.LogoutFilter@4d525897, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@cfb94fd, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@7831d1aa, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@10dbf660, org.springframework.security.web.session.SessionManagementFilter@55397d15, org.springframework.security.web.access.ExceptionTranslationFilter@fb2c2f3, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@515c732d] | ||
17 | +2020-06-09 12:05:32.150 [main] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. | ||
18 | +2020-06-09 12:05:32.942 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor - Initializing ExecutorService 'applicationTaskExecutor' | ||
19 | +2020-06-09 12:05:34.830 [main] INFO org.quartz.impl.StdSchedulerFactory - Using default implementation for ThreadExecutor | ||
20 | +2020-06-09 12:05:34.877 [main] INFO org.quartz.core.SchedulerSignalerImpl - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl | ||
21 | +2020-06-09 12:05:34.877 [main] INFO org.quartz.core.QuartzScheduler - Quartz Scheduler v.2.3.1 created. | ||
22 | +2020-06-09 12:05:34.879 [main] INFO org.quartz.simpl.RAMJobStore - RAMJobStore initialized. | ||
23 | +2020-06-09 12:05:34.882 [main] INFO org.quartz.core.QuartzScheduler - Scheduler meta-data: Quartz Scheduler (v2.3.1) 'quartzScheduler' with instanceId 'NON_CLUSTERED' | ||
24 | + Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally. | ||
25 | + NOT STARTED. | ||
26 | + Currently in standby mode. | ||
27 | + Number of jobs executed: 0 | ||
28 | + Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads. | ||
29 | + Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered. | ||
30 | + | ||
31 | +2020-06-09 12:05:34.883 [main] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler 'quartzScheduler' initialized from an externally provided properties instance. | ||
32 | +2020-06-09 12:05:34.883 [main] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler version: 2.3.1 | ||
33 | +2020-06-09 12:05:34.883 [main] INFO org.quartz.core.QuartzScheduler - JobFactory set to: org.springframework.scheduling.quartz.SpringBeanJobFactory@b5d7233 | ||
34 | +2020-06-09 12:05:34.949 [main] INFO o.s.b.actuate.endpoint.web.EndpointLinksResolver - Exposing 24 endpoint(s) beneath base path '/actuator' | ||
35 | +2020-06-09 12:05:35.080 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskScheduler - Initializing ExecutorService 'taskScheduler' | ||
36 | +2020-06-09 12:05:37.590 [main] INFO o.s.cloud.netflix.eureka.InstanceInfoFactory - Setting initial instance status as: STARTING | ||
37 | +2020-06-09 12:05:37.752 [main] INFO com.netflix.discovery.DiscoveryClient - Initializing Eureka in region us-east-1 | ||
38 | +2020-06-09 12:05:38.886 [main] INFO c.n.discovery.provider.DiscoveryJerseyProvider - Using JSON encoding codec LegacyJacksonJson | ||
39 | +2020-06-09 12:05:38.886 [main] INFO c.n.discovery.provider.DiscoveryJerseyProvider - Using JSON decoding codec LegacyJacksonJson | ||
40 | +2020-06-09 12:05:39.346 [main] INFO c.n.discovery.provider.DiscoveryJerseyProvider - Using XML encoding codec XStreamXml | ||
41 | +2020-06-09 12:05:39.347 [main] INFO c.n.discovery.provider.DiscoveryJerseyProvider - Using XML decoding codec XStreamXml | ||
42 | +2020-06-09 12:05:40.560 [main] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
43 | +2020-06-09 12:05:41.164 [main] INFO com.netflix.discovery.DiscoveryClient - Disable delta property : false | ||
44 | +2020-06-09 12:05:41.165 [main] INFO com.netflix.discovery.DiscoveryClient - Single vip registry refresh property : null | ||
45 | +2020-06-09 12:05:41.165 [main] INFO com.netflix.discovery.DiscoveryClient - Force full registry fetch : false | ||
46 | +2020-06-09 12:05:41.166 [main] INFO com.netflix.discovery.DiscoveryClient - Application is null : false | ||
47 | +2020-06-09 12:05:41.167 [main] INFO com.netflix.discovery.DiscoveryClient - Registered Applications size is zero : true | ||
48 | +2020-06-09 12:05:41.168 [main] INFO com.netflix.discovery.DiscoveryClient - Application version is -1: true | ||
49 | +2020-06-09 12:05:41.169 [main] INFO com.netflix.discovery.DiscoveryClient - Getting all instance registry info from the eureka server | ||
50 | +2020-06-09 12:05:42.049 [main] INFO com.netflix.discovery.DiscoveryClient - The response status is 200 | ||
51 | +2020-06-09 12:05:42.060 [main] INFO com.netflix.discovery.DiscoveryClient - Starting heartbeat executor: renew interval is: 30 | ||
52 | +2020-06-09 12:05:42.070 [main] INFO com.netflix.discovery.InstanceInfoReplicator - InstanceInfoReplicator onDemand update allowed rate per min is 4 | ||
53 | +2020-06-09 12:05:42.090 [main] INFO com.netflix.discovery.DiscoveryClient - Discovery Client initialized at timestamp 1591675542084 with initial instances count: 5 | ||
54 | +2020-06-09 12:05:42.127 [main] INFO o.s.c.n.e.serviceregistry.EurekaServiceRegistry - Registering application CGONMS-ARRIVAL with eureka with status UP | ||
55 | +2020-06-09 12:05:42.130 [main] INFO com.netflix.discovery.DiscoveryClient - Saw local status change event StatusChangeEvent [timestamp=1591675542129, current=UP, previous=STARTING] | ||
56 | +2020-06-09 12:05:42.140 [main] INFO o.s.scheduling.quartz.SchedulerFactoryBean - Starting Quartz Scheduler now | ||
57 | +2020-06-09 12:05:42.893 [main] INFO org.quartz.core.QuartzScheduler - Scheduler quartzScheduler_$_NON_CLUSTERED started. | ||
58 | +2020-06-09 12:05:43.066 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-9011"] | ||
59 | +2020-06-09 12:05:43.419 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 9011 (http) with context path '' | ||
60 | +2020-06-09 12:05:43.425 [main] INFO o.s.c.n.e.s.EurekaAutoServiceRegistration - Updating port to 9011 | ||
61 | +2020-06-09 12:05:43.451 [main] INFO c.s.wlpt.cgonms.arrival.CgonmsArrivalApplication - Started CgonmsArrivalApplication in 31.227 seconds (JVM running for 38.863) | ||
62 | +2020-06-09 12:05:44.915 [DiscoveryClient-InstanceInfoReplicator-0] INFO com.netflix.discovery.DiscoveryClient - DiscoveryClient_CGONMS-ARRIVAL/192.168.1.17:9011: registering service... | ||
63 | +2020-06-09 12:05:45.075 [DiscoveryClient-InstanceInfoReplicator-0] INFO com.netflix.discovery.DiscoveryClient - DiscoveryClient_CGONMS-ARRIVAL/192.168.1.17:9011 - registration status: 204 | ||
64 | +2020-06-09 12:05:45.986 [RMI TCP Connection(5)-192.168.1.17] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet' | ||
65 | +2020-06-09 12:05:45.987 [RMI TCP Connection(5)-192.168.1.17] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet' | ||
66 | +2020-06-09 12:05:46.045 [RMI TCP Connection(5)-192.168.1.17] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 57 ms | ||
67 | +2020-06-09 12:10:41.178 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
68 | +2020-06-09 12:15:41.182 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
69 | +2020-06-09 12:20:41.184 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
70 | +2020-06-09 12:25:41.186 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
71 | +2020-06-09 12:30:41.189 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
72 | +2020-06-09 12:35:41.191 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
73 | +2020-06-09 12:38:29.749 [AsyncReporter{org.springframework.cloud.sleuth.zipkin2.sender.RestTemplateSender@33215ffb}] INFO com.netflix.config.ChainedDynamicProperty - Flipping property: 192.168.1.63.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647 | ||
74 | +2020-06-09 12:38:29.784 [AsyncReporter{org.springframework.cloud.sleuth.zipkin2.sender.RestTemplateSender@33215ffb}] INFO com.netflix.util.concurrent.ShutdownEnabledTimer - Shutdown hook installed for: NFLoadBalancer-PingTimer-192.168.1.63 | ||
75 | +2020-06-09 12:38:29.786 [AsyncReporter{org.springframework.cloud.sleuth.zipkin2.sender.RestTemplateSender@33215ffb}] INFO com.netflix.loadbalancer.BaseLoadBalancer - Client: 192.168.1.63 instantiated a LoadBalancer: DynamicServerListLoadBalancer:{NFLoadBalancer:name=192.168.1.63,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:null | ||
76 | +2020-06-09 12:38:29.809 [AsyncReporter{org.springframework.cloud.sleuth.zipkin2.sender.RestTemplateSender@33215ffb}] INFO c.n.loadbalancer.DynamicServerListLoadBalancer - Using serverListUpdater PollingServerListUpdater | ||
77 | +2020-06-09 12:38:29.817 [AsyncReporter{org.springframework.cloud.sleuth.zipkin2.sender.RestTemplateSender@33215ffb}] INFO c.n.loadbalancer.DynamicServerListLoadBalancer - DynamicServerListLoadBalancer for client 192.168.1.63 initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=192.168.1.63,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:org.springframework.cloud.netflix.ribbon.eureka.DomainExtractingServerList@2f06aa72 | ||
78 | +2020-06-09 12:40:41.194 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
79 | +2020-06-09 12:43:03.717 [Thread-76] INFO com.netflix.loadbalancer.PollingServerListUpdater - Shutting down the Executor Pool for PollingServerListUpdater | ||
80 | +2020-06-09 12:43:03.722 [Thread-64] INFO o.s.c.n.e.serviceregistry.EurekaServiceRegistry - Unregistering application CGONMS-ARRIVAL with eureka with status DOWN | ||
81 | +2020-06-09 12:43:03.732 [Thread-64] INFO org.quartz.core.QuartzScheduler - Scheduler quartzScheduler_$_NON_CLUSTERED paused. | ||
82 | +2020-06-09 12:43:03.736 [Thread-64] INFO o.s.scheduling.concurrent.ThreadPoolTaskScheduler - Shutting down ExecutorService 'taskScheduler' | ||
83 | +2020-06-09 12:43:03.737 [Thread-64] INFO o.s.scheduling.quartz.SchedulerFactoryBean - Shutting down Quartz Scheduler | ||
84 | +2020-06-09 12:43:03.738 [Thread-64] INFO org.quartz.core.QuartzScheduler - Scheduler quartzScheduler_$_NON_CLUSTERED shutting down. | ||
85 | +2020-06-09 12:43:03.738 [Thread-64] INFO org.quartz.core.QuartzScheduler - Scheduler quartzScheduler_$_NON_CLUSTERED paused. | ||
86 | +2020-06-09 12:43:03.764 [DiscoveryClient-InstanceInfoReplicator-0] INFO com.netflix.discovery.DiscoveryClient - DiscoveryClient_CGONMS-ARRIVAL/192.168.1.17:9011: registering service... | ||
87 | +2020-06-09 12:43:03.763 [Thread-64] INFO org.quartz.core.QuartzScheduler - Scheduler quartzScheduler_$_NON_CLUSTERED shutdown complete. | ||
88 | +2020-06-09 12:43:03.769 [Thread-64] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor - Shutting down ExecutorService 'applicationTaskExecutor' | ||
89 | +2020-06-09 12:43:03.770 [DiscoveryClient-InstanceInfoReplicator-0] INFO com.netflix.discovery.DiscoveryClient - DiscoveryClient_CGONMS-ARRIVAL/192.168.1.17:9011 - registration status: 204 | ||
90 | +2020-06-09 12:43:03.780 [Thread-64] INFO com.alibaba.druid.pool.DruidDataSource - {dataSource-1} closed | ||
91 | +2020-06-09 12:43:04.432 [Thread-64] INFO com.netflix.util.concurrent.ShutdownEnabledTimer - Shutdown hook removed for: NFLoadBalancer-PingTimer-192.168.1.63 | ||
92 | +2020-06-09 12:43:04.467 [Thread-64] INFO com.netflix.util.concurrent.ShutdownEnabledTimer - Exception caught (might be ok if at shutdown) | ||
93 | +java.lang.IllegalStateException: Shutdown in progress | ||
94 | + at java.lang.ApplicationShutdownHooks.remove(ApplicationShutdownHooks.java:82) | ||
95 | + at java.lang.Runtime.removeShutdownHook(Runtime.java:239) | ||
96 | + at com.netflix.util.concurrent.ShutdownEnabledTimer.cancel(ShutdownEnabledTimer.java:70) | ||
97 | + at com.netflix.loadbalancer.BaseLoadBalancer.cancelPingTask(BaseLoadBalancer.java:632) | ||
98 | + at com.netflix.loadbalancer.BaseLoadBalancer.shutdown(BaseLoadBalancer.java:883) | ||
99 | + at com.netflix.loadbalancer.DynamicServerListLoadBalancer.shutdown(DynamicServerListLoadBalancer.java:285) | ||
100 | + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | ||
101 | + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) | ||
102 | + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | ||
103 | + at java.lang.reflect.Method.invoke(Method.java:498) | ||
104 | + at org.springframework.beans.factory.support.DisposableBeanAdapter.invokeCustomDestroyMethod(DisposableBeanAdapter.java:339) | ||
105 | + at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:273) | ||
106 | + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:571) | ||
107 | + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:543) | ||
108 | + at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:1036) | ||
109 | + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:504) | ||
110 | + at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:1029) | ||
111 | + at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1057) | ||
112 | + at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1026) | ||
113 | + at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:975) | ||
114 | + at org.springframework.cloud.context.named.NamedContextFactory.destroy(NamedContextFactory.java:92) | ||
115 | + at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:258) | ||
116 | + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:571) | ||
117 | + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:543) | ||
118 | + at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:1036) | ||
119 | + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:504) | ||
120 | + at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:1029) | ||
121 | + at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1057) | ||
122 | + at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1026) | ||
123 | + at org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:945) | ||
124 | +2020-06-09 12:43:04.485 [Thread-64] INFO com.netflix.discovery.DiscoveryClient - Shutting down DiscoveryClient ... | ||
125 | +2020-06-09 12:43:07.489 [Thread-64] INFO com.netflix.discovery.DiscoveryClient - Unregistering ... | ||
126 | +2020-06-09 12:43:07.516 [Thread-64] INFO com.netflix.discovery.DiscoveryClient - DiscoveryClient_CGONMS-ARRIVAL/192.168.1.17:9011 - deregister status: 200 | ||
127 | +2020-06-09 12:43:07.558 [Thread-64] INFO com.netflix.discovery.DiscoveryClient - Completed shut down of DiscoveryClient | ||
128 | +2020-06-09 12:43:24.880 [main] INFO c.s.wlpt.cgonms.arrival.CgonmsArrivalApplication - The following profiles are active: dev | ||
129 | +2020-06-09 12:43:27.985 [main] INFO o.springframework.cloud.context.scope.GenericScope - BeanFactory id=684cd641-8db0-3d4b-addd-bc9ad9499774 | ||
130 | +2020-06-09 12:43:28.863 [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$1a5c3a38] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) | ||
131 | +2020-06-09 12:43:28.960 [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$36763d35] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) | ||
132 | +2020-06-09 12:43:29.764 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 9011 (http) | ||
133 | +2020-06-09 12:43:29.797 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-9011"] | ||
134 | +2020-06-09 12:43:29.820 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat] | ||
135 | +2020-06-09 12:43:29.821 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.22] | ||
136 | +2020-06-09 12:43:30.277 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext | ||
137 | +2020-06-09 12:43:30.278 [main] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 5346 ms | ||
138 | +2020-06-09 12:43:30.762 [main] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. | ||
139 | +2020-06-09 12:43:30.787 [main] INFO com.netflix.config.DynamicPropertyFactory - DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@165d1d54 | ||
140 | +2020-06-09 12:43:32.221 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure - Init DruidDataSource | ||
141 | +2020-06-09 12:43:32.680 [main] INFO com.alibaba.druid.pool.DruidDataSource - {dataSource-1} inited | ||
142 | +2020-06-09 12:43:34.533 [main] INFO o.s.b.a.endpoint.web.ServletEndpointRegistrar - Registered '/actuator/jolokia' to jolokia-actuator-endpoint | ||
143 | +2020-06-09 12:43:35.565 [main] INFO o.s.security.web.DefaultSecurityFilterChain - Creating filter chain: any request, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@1071ae7c, org.springframework.security.web.context.SecurityContextPersistenceFilter@3b42b729, org.springframework.security.web.header.HeaderWriterFilter@5a9051fd, org.springframework.security.web.authentication.logout.LogoutFilter@774304ca, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@1c0680b0, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@7381d6f0, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@dd9de63, org.springframework.security.web.session.SessionManagementFilter@515940af, org.springframework.security.web.access.ExceptionTranslationFilter@4fe4503a, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@7cec3975] | ||
144 | +2020-06-09 12:43:35.633 [main] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. | ||
145 | +2020-06-09 12:43:36.320 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor - Initializing ExecutorService 'applicationTaskExecutor' | ||
146 | +2020-06-09 12:43:37.896 [main] INFO org.quartz.impl.StdSchedulerFactory - Using default implementation for ThreadExecutor | ||
147 | +2020-06-09 12:43:37.999 [main] INFO org.quartz.core.SchedulerSignalerImpl - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl | ||
148 | +2020-06-09 12:43:38.000 [main] INFO org.quartz.core.QuartzScheduler - Quartz Scheduler v.2.3.1 created. | ||
149 | +2020-06-09 12:43:38.003 [main] INFO org.quartz.simpl.RAMJobStore - RAMJobStore initialized. | ||
150 | +2020-06-09 12:43:38.005 [main] INFO org.quartz.core.QuartzScheduler - Scheduler meta-data: Quartz Scheduler (v2.3.1) 'quartzScheduler' with instanceId 'NON_CLUSTERED' | ||
151 | + Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally. | ||
152 | + NOT STARTED. | ||
153 | + Currently in standby mode. | ||
154 | + Number of jobs executed: 0 | ||
155 | + Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads. | ||
156 | + Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered. | ||
157 | + | ||
158 | +2020-06-09 12:43:38.006 [main] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler 'quartzScheduler' initialized from an externally provided properties instance. | ||
159 | +2020-06-09 12:43:38.006 [main] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler version: 2.3.1 | ||
160 | +2020-06-09 12:43:38.006 [main] INFO org.quartz.core.QuartzScheduler - JobFactory set to: org.springframework.scheduling.quartz.SpringBeanJobFactory@10820978 | ||
161 | +2020-06-09 12:43:38.059 [main] INFO o.s.b.actuate.endpoint.web.EndpointLinksResolver - Exposing 24 endpoint(s) beneath base path '/actuator' | ||
162 | +2020-06-09 12:43:38.205 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskScheduler - Initializing ExecutorService 'taskScheduler' | ||
163 | +2020-06-09 12:43:40.378 [main] INFO o.s.cloud.netflix.eureka.InstanceInfoFactory - Setting initial instance status as: STARTING | ||
164 | +2020-06-09 12:43:40.463 [main] INFO com.netflix.discovery.DiscoveryClient - Initializing Eureka in region us-east-1 | ||
165 | +2020-06-09 12:43:41.328 [main] INFO c.n.discovery.provider.DiscoveryJerseyProvider - Using JSON encoding codec LegacyJacksonJson | ||
166 | +2020-06-09 12:43:41.329 [main] INFO c.n.discovery.provider.DiscoveryJerseyProvider - Using JSON decoding codec LegacyJacksonJson | ||
167 | +2020-06-09 12:43:41.621 [main] INFO c.n.discovery.provider.DiscoveryJerseyProvider - Using XML encoding codec XStreamXml | ||
168 | +2020-06-09 12:43:41.622 [main] INFO c.n.discovery.provider.DiscoveryJerseyProvider - Using XML decoding codec XStreamXml | ||
169 | +2020-06-09 12:43:42.212 [main] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
170 | +2020-06-09 12:43:42.608 [main] INFO com.netflix.discovery.DiscoveryClient - Disable delta property : false | ||
171 | +2020-06-09 12:43:42.609 [main] INFO com.netflix.discovery.DiscoveryClient - Single vip registry refresh property : null | ||
172 | +2020-06-09 12:43:42.609 [main] INFO com.netflix.discovery.DiscoveryClient - Force full registry fetch : false | ||
173 | +2020-06-09 12:43:42.610 [main] INFO com.netflix.discovery.DiscoveryClient - Application is null : false | ||
174 | +2020-06-09 12:43:42.610 [main] INFO com.netflix.discovery.DiscoveryClient - Registered Applications size is zero : true | ||
175 | +2020-06-09 12:43:42.611 [main] INFO com.netflix.discovery.DiscoveryClient - Application version is -1: true | ||
176 | +2020-06-09 12:43:42.611 [main] INFO com.netflix.discovery.DiscoveryClient - Getting all instance registry info from the eureka server | ||
177 | +2020-06-09 12:43:43.077 [main] INFO com.netflix.discovery.DiscoveryClient - The response status is 200 | ||
178 | +2020-06-09 12:43:43.088 [main] INFO com.netflix.discovery.DiscoveryClient - Starting heartbeat executor: renew interval is: 30 | ||
179 | +2020-06-09 12:43:43.096 [main] INFO com.netflix.discovery.InstanceInfoReplicator - InstanceInfoReplicator onDemand update allowed rate per min is 4 | ||
180 | +2020-06-09 12:43:43.107 [main] INFO com.netflix.discovery.DiscoveryClient - Discovery Client initialized at timestamp 1591677823103 with initial instances count: 5 | ||
181 | +2020-06-09 12:43:43.129 [main] INFO o.s.c.n.e.serviceregistry.EurekaServiceRegistry - Registering application CGONMS-ARRIVAL with eureka with status UP | ||
182 | +2020-06-09 12:43:43.645 [main] INFO com.netflix.discovery.DiscoveryClient - Saw local status change event StatusChangeEvent [timestamp=1591677823131, current=UP, previous=STARTING] | ||
183 | +2020-06-09 12:43:43.665 [main] INFO o.s.scheduling.quartz.SchedulerFactoryBean - Starting Quartz Scheduler now | ||
184 | +2020-06-09 12:43:43.666 [main] INFO org.quartz.core.QuartzScheduler - Scheduler quartzScheduler_$_NON_CLUSTERED started. | ||
185 | +2020-06-09 12:43:43.725 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-9011"] | ||
186 | +2020-06-09 12:43:43.795 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 9011 (http) with context path '' | ||
187 | +2020-06-09 12:43:43.797 [main] INFO o.s.c.n.e.s.EurekaAutoServiceRegistration - Updating port to 9011 | ||
188 | +2020-06-09 12:43:43.804 [main] INFO c.s.wlpt.cgonms.arrival.CgonmsArrivalApplication - Started CgonmsArrivalApplication in 23.587 seconds (JVM running for 27.383) | ||
189 | +2020-06-09 12:43:44.160 [DiscoveryClient-InstanceInfoReplicator-0] INFO com.netflix.discovery.DiscoveryClient - DiscoveryClient_CGONMS-ARRIVAL/192.168.1.17:9011: registering service... | ||
190 | +2020-06-09 12:43:44.301 [DiscoveryClient-InstanceInfoReplicator-0] INFO com.netflix.discovery.DiscoveryClient - DiscoveryClient_CGONMS-ARRIVAL/192.168.1.17:9011 - registration status: 204 | ||
191 | +2020-06-09 12:43:44.886 [http-nio-9011-exec-2] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet' | ||
192 | +2020-06-09 12:43:44.887 [http-nio-9011-exec-2] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet' | ||
193 | +2020-06-09 12:43:44.932 [http-nio-9011-exec-2] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 45 ms | ||
194 | +2020-06-09 12:48:42.621 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
195 | +2020-06-09 12:53:42.624 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
196 | +2020-06-09 12:58:42.627 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
197 | +2020-06-09 13:03:42.628 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
198 | +2020-06-09 13:08:42.631 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
199 | +2020-06-09 13:13:42.633 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
200 | +2020-06-09 13:18:42.634 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
201 | +2020-06-09 13:23:42.635 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
202 | +2020-06-09 13:28:42.636 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
203 | +2020-06-09 13:33:42.639 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
204 | +2020-06-09 13:38:42.640 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
205 | +2020-06-09 13:43:42.642 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
206 | +2020-06-09 13:48:42.644 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
207 | +2020-06-09 13:53:42.645 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
208 | +2020-06-09 13:58:42.647 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
209 | +2020-06-09 14:03:42.650 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
210 | +2020-06-09 14:08:42.653 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
211 | +2020-06-09 14:13:42.655 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
212 | +2020-06-09 14:18:42.657 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
213 | +2020-06-09 14:23:42.660 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
214 | +2020-06-09 14:28:42.663 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
215 | +2020-06-09 14:33:42.679 [AsyncResolver-bootstrap-executor-0] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
216 | +2020-06-09 14:34:10.705 [Thread-51] INFO o.s.c.n.e.serviceregistry.EurekaServiceRegistry - Unregistering application CGONMS-ARRIVAL with eureka with status DOWN | ||
217 | +2020-06-09 14:34:10.738 [DiscoveryClient-InstanceInfoReplicator-0] INFO com.netflix.discovery.DiscoveryClient - DiscoveryClient_CGONMS-ARRIVAL/192.168.1.17:9011: registering service... | ||
218 | +2020-06-09 14:34:10.748 [DiscoveryClient-InstanceInfoReplicator-0] INFO com.netflix.discovery.DiscoveryClient - DiscoveryClient_CGONMS-ARRIVAL/192.168.1.17:9011 - registration status: 204 | ||
219 | +2020-06-09 14:34:10.767 [Thread-51] INFO org.quartz.core.QuartzScheduler - Scheduler quartzScheduler_$_NON_CLUSTERED paused. | ||
220 | +2020-06-09 14:34:10.776 [Thread-51] INFO o.s.scheduling.concurrent.ThreadPoolTaskScheduler - Shutting down ExecutorService 'taskScheduler' | ||
221 | +2020-06-09 14:34:10.778 [Thread-51] INFO o.s.scheduling.quartz.SchedulerFactoryBean - Shutting down Quartz Scheduler | ||
222 | +2020-06-09 14:34:10.778 [Thread-51] INFO org.quartz.core.QuartzScheduler - Scheduler quartzScheduler_$_NON_CLUSTERED shutting down. | ||
223 | +2020-06-09 14:34:10.779 [Thread-51] INFO org.quartz.core.QuartzScheduler - Scheduler quartzScheduler_$_NON_CLUSTERED paused. | ||
224 | +2020-06-09 14:34:10.782 [Thread-51] INFO org.quartz.core.QuartzScheduler - Scheduler quartzScheduler_$_NON_CLUSTERED shutdown complete. | ||
225 | +2020-06-09 14:34:10.796 [Thread-51] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor - Shutting down ExecutorService 'applicationTaskExecutor' | ||
226 | +2020-06-09 14:34:10.838 [Thread-51] INFO com.alibaba.druid.pool.DruidDataSource - {dataSource-1} closed | ||
227 | +2020-06-09 14:34:11.854 [Thread-51] INFO com.netflix.discovery.DiscoveryClient - Shutting down DiscoveryClient ... | ||
228 | +2020-06-09 14:34:14.859 [Thread-51] INFO com.netflix.discovery.DiscoveryClient - Unregistering ... | ||
229 | +2020-06-09 14:34:14.871 [Thread-51] INFO com.netflix.discovery.DiscoveryClient - DiscoveryClient_CGONMS-ARRIVAL/192.168.1.17:9011 - deregister status: 200 | ||
230 | +2020-06-09 14:34:14.910 [Thread-51] INFO com.netflix.discovery.DiscoveryClient - Completed shut down of DiscoveryClient | ||
231 | +2020-06-09 14:34:18.232 [http-nio-9011-exec-5] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure - Init DruidDataSource | ||
232 | +2020-06-09 14:34:18.328 [http-nio-9011-exec-5] INFO com.alibaba.druid.pool.DruidDataSource - {dataSource-2} inited | ||
233 | +2020-06-09 14:34:18.481 [http-nio-9011-exec-5] INFO o.s.cloud.netflix.eureka.InstanceInfoFactory - Setting initial instance status as: STARTING | ||
234 | +2020-06-09 14:34:18.486 [http-nio-9011-exec-5] INFO com.netflix.discovery.DiscoveryClient - Initializing Eureka in region us-east-1 | ||
235 | +2020-06-09 14:34:18.499 [http-nio-9011-exec-5] INFO c.n.discovery.provider.DiscoveryJerseyProvider - Using JSON encoding codec LegacyJacksonJson | ||
236 | +2020-06-09 14:34:18.500 [http-nio-9011-exec-5] INFO c.n.discovery.provider.DiscoveryJerseyProvider - Using JSON decoding codec LegacyJacksonJson | ||
237 | +2020-06-09 14:34:18.501 [http-nio-9011-exec-5] INFO c.n.discovery.provider.DiscoveryJerseyProvider - Using XML encoding codec XStreamXml | ||
238 | +2020-06-09 14:34:18.501 [http-nio-9011-exec-5] INFO c.n.discovery.provider.DiscoveryJerseyProvider - Using XML decoding codec XStreamXml | ||
239 | +2020-06-09 14:34:21.663 [http-nio-9011-exec-5] INFO c.n.d.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration | ||
240 | +2020-06-09 14:34:21.677 [http-nio-9011-exec-5] INFO com.netflix.discovery.DiscoveryClient - Disable delta property : false | ||
241 | +2020-06-09 14:34:21.680 [http-nio-9011-exec-5] INFO com.netflix.discovery.DiscoveryClient - Single vip registry refresh property : null | ||
242 | +2020-06-09 14:34:21.681 [http-nio-9011-exec-5] INFO com.netflix.discovery.DiscoveryClient - Force full registry fetch : false | ||
243 | +2020-06-09 14:34:21.683 [http-nio-9011-exec-5] INFO com.netflix.discovery.DiscoveryClient - Application is null : false | ||
244 | +2020-06-09 14:34:21.686 [http-nio-9011-exec-5] INFO com.netflix.discovery.DiscoveryClient - Registered Applications size is zero : true | ||
245 | +2020-06-09 14:34:21.688 [http-nio-9011-exec-5] INFO com.netflix.discovery.DiscoveryClient - Application version is -1: true | ||
246 | +2020-06-09 14:34:21.689 [http-nio-9011-exec-5] INFO com.netflix.discovery.DiscoveryClient - Getting all instance registry info from the eureka server | ||
247 | +2020-06-09 14:34:21.766 [http-nio-9011-exec-5] INFO com.netflix.discovery.DiscoveryClient - Starting heartbeat executor: renew interval is: 30 | ||
248 | +2020-06-09 14:34:21.770 [http-nio-9011-exec-5] INFO com.netflix.discovery.InstanceInfoReplicator - InstanceInfoReplicator onDemand update allowed rate per min is 4 | ||
249 | +2020-06-09 14:34:21.795 [http-nio-9011-exec-5] INFO com.netflix.discovery.DiscoveryClient - Discovery Client initialized at timestamp 1591684461795 with initial instances count: 0 |
logs/log_trace.log
0 → 100644
logs/log_warn.log
0 → 100644
1 | +2020-06-09 12:05:21.753 [main] WARN o.springframework.boot.actuate.endpoint.EndpointId - Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format. | ||
2 | +2020-06-09 12:05:22.436 [main] WARN org.mybatis.spring.mapper.ClassPathMapperScanner - No MyBatis mapper was found in '[com.sunyo.wlpt.cgonms.arrival.mapper]' package. Please check your configuration. | ||
3 | +2020-06-09 12:05:26.610 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources. | ||
4 | +2020-06-09 12:05:32.149 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources. | ||
5 | +2020-06-09 12:05:42.135 [main] WARN com.netflix.discovery.InstanceInfoReplicator - Ignoring onDemand update due to rate limiter | ||
6 | +2020-06-09 12:43:03.724 [Thread-64] WARN com.netflix.discovery.DiscoveryClient - Saw local status change event StatusChangeEvent [timestamp=1591677783724, current=DOWN, previous=UP] | ||
7 | +2020-06-09 12:43:03.738 [DiscoveryClient-InstanceInfoReplicator-0] WARN com.netflix.discovery.DiscoveryClient - Saw local status change event StatusChangeEvent [timestamp=1591677783738, current=UP, previous=DOWN] | ||
8 | +2020-06-09 12:43:27.096 [main] WARN o.springframework.boot.actuate.endpoint.EndpointId - Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format. | ||
9 | +2020-06-09 12:43:27.500 [main] WARN org.mybatis.spring.mapper.ClassPathMapperScanner - No MyBatis mapper was found in '[com.sunyo.wlpt.cgonms.arrival.mapper]' package. Please check your configuration. | ||
10 | +2020-06-09 12:43:30.761 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources. | ||
11 | +2020-06-09 12:43:35.633 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources. | ||
12 | +2020-06-09 12:43:43.660 [main] WARN com.netflix.discovery.InstanceInfoReplicator - Ignoring onDemand update due to rate limiter | ||
13 | +2020-06-09 14:34:10.706 [Thread-51] WARN com.netflix.discovery.DiscoveryClient - Saw local status change event StatusChangeEvent [timestamp=1591684450706, current=DOWN, previous=UP] | ||
14 | +2020-06-09 14:34:10.737 [DiscoveryClient-InstanceInfoReplicator-0] WARN com.netflix.discovery.DiscoveryClient - Saw local status change event StatusChangeEvent [timestamp=1591684450737, current=UP, previous=DOWN] | ||
15 | +2020-06-09 14:34:11.875 [AsyncReporter{org.springframework.cloud.sleuth.zipkin2.sender.RestTemplateSender@55e42684}] WARN o.s.c.a.AnnotationConfigApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eurekaRibbonClientConfiguration': Unsatisfied dependency expressed through field 'eurekaConfig'; nested exception is org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'eurekaInstanceConfigBean': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!) | ||
16 | +2020-06-09 14:34:14.762 [http-nio-9011-exec-5] WARN o.s.boot.actuate.jdbc.DataSourceHealthIndicator - DataSource health check failed | ||
17 | +org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.alibaba.druid.pool.DataSourceClosedException: dataSource already closed at Tue Jun 09 14:34:10 CST 2020 | ||
18 | + at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:81) | ||
19 | + at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:323) | ||
20 | + at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.getProduct(DataSourceHealthIndicator.java:119) | ||
21 | + at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.doDataSourceHealthCheck(DataSourceHealthIndicator.java:107) | ||
22 | + at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.doHealthCheck(DataSourceHealthIndicator.java:102) | ||
23 | + at org.springframework.boot.actuate.health.AbstractHealthIndicator.health(AbstractHealthIndicator.java:82) | ||
24 | + at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:95) | ||
25 | + at org.springframework.boot.actuate.health.HealthEndpoint.health(HealthEndpoint.java:50) | ||
26 | + at org.springframework.boot.actuate.health.HealthEndpointWebExtension.health(HealthEndpointWebExtension.java:53) | ||
27 | + at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source) | ||
28 | + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | ||
29 | + at java.lang.reflect.Method.invoke(Method.java:498) | ||
30 | + at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:282) | ||
31 | + at org.springframework.boot.actuate.endpoint.invoke.reflect.ReflectiveOperationInvoker.invoke(ReflectiveOperationInvoker.java:76) | ||
32 | + at org.springframework.boot.actuate.endpoint.annotation.AbstractDiscoveredOperation.invoke(AbstractDiscoveredOperation.java:60) | ||
33 | + at org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$ServletWebOperationAdapter.handle(AbstractWebMvcEndpointHandlerMapping.java:278) | ||
34 | + at org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$OperationHandler.handle(AbstractWebMvcEndpointHandlerMapping.java:334) | ||
35 | + at sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source) | ||
36 | + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | ||
37 | + at java.lang.reflect.Method.invoke(Method.java:498) | ||
38 | + at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) | ||
39 | + at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) | ||
40 | + at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104) | ||
41 | + at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892) | ||
42 | + at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797) | ||
43 | + at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) | ||
44 | + at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1039) | ||
45 | + at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942) | ||
46 | + at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005) | ||
47 | + at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:897) | ||
48 | + at javax.servlet.http.HttpServlet.service(HttpServlet.java:634) | ||
49 | + at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882) | ||
50 | + at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) | ||
51 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) | ||
52 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
53 | + at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) | ||
54 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
55 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
56 | + at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123) | ||
57 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
58 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
59 | + at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:88) | ||
60 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
61 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
62 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
63 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320) | ||
64 | + at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127) | ||
65 | + at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91) | ||
66 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
67 | + at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119) | ||
68 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
69 | + at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137) | ||
70 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
71 | + at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111) | ||
72 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
73 | + at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170) | ||
74 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
75 | + at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) | ||
76 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
77 | + at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116) | ||
78 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
79 | + at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:74) | ||
80 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
81 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
82 | + at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105) | ||
83 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
84 | + at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56) | ||
85 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
86 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
87 | + at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215) | ||
88 | + at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178) | ||
89 | + at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357) | ||
90 | + at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270) | ||
91 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
92 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
93 | + at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) | ||
94 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
95 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
96 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
97 | + at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92) | ||
98 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
99 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
100 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
101 | + at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93) | ||
102 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
103 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
104 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
105 | + at org.springframework.cloud.sleuth.instrument.web.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.java:50) | ||
106 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
107 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
108 | + at brave.servlet.TracingFilter.doFilter(TracingFilter.java:99) | ||
109 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
110 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
111 | + at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:114) | ||
112 | + at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:104) | ||
113 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
114 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
115 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
116 | + at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200) | ||
117 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
118 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
119 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
120 | + at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) | ||
121 | + at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) | ||
122 | + at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) | ||
123 | + at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) | ||
124 | + at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) | ||
125 | + at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) | ||
126 | + at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) | ||
127 | + at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) | ||
128 | + at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) | ||
129 | + at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853) | ||
130 | + at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587) | ||
131 | + at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) | ||
132 | + at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) | ||
133 | + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) | ||
134 | + at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) | ||
135 | + at java.lang.Thread.run(Thread.java:748) | ||
136 | +Caused by: com.alibaba.druid.pool.DataSourceClosedException: dataSource already closed at Tue Jun 09 14:34:10 CST 2020 | ||
137 | + at com.alibaba.druid.pool.DruidDataSource.getConnectionInternal(DruidDataSource.java:1356) | ||
138 | + at com.alibaba.druid.pool.DruidDataSource.getConnectionDirect(DruidDataSource.java:1253) | ||
139 | + at com.alibaba.druid.filter.FilterChainImpl.dataSource_connect(FilterChainImpl.java:4619) | ||
140 | + at com.alibaba.druid.filter.stat.StatFilter.dataSource_getConnection(StatFilter.java:680) | ||
141 | + at com.alibaba.druid.filter.FilterChainImpl.dataSource_connect(FilterChainImpl.java:4615) | ||
142 | + at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1231) | ||
143 | + at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1223) | ||
144 | + at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:90) | ||
145 | + at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:157) | ||
146 | + at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:115) | ||
147 | + at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:78) | ||
148 | + ... 117 common frames omitted | ||
149 | +2020-06-09 14:34:14.776 [http-nio-9011-exec-5] WARN o.s.cloud.health.RefreshScopeHealthIndicator - Health check failed | ||
150 | +org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'refreshScope': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!) | ||
151 | + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:208) | ||
152 | + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) | ||
153 | + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) | ||
154 | + at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277) | ||
155 | + at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1251) | ||
156 | + at org.springframework.beans.factory.support.DefaultListableBeanFactory$DependencyObjectProvider.getIfAvailable(DefaultListableBeanFactory.java:1883) | ||
157 | + at org.springframework.cloud.health.RefreshScopeHealthIndicator.doHealthCheck(RefreshScopeHealthIndicator.java:49) | ||
158 | + at org.springframework.boot.actuate.health.AbstractHealthIndicator.health(AbstractHealthIndicator.java:82) | ||
159 | + at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:95) | ||
160 | + at org.springframework.boot.actuate.health.HealthEndpoint.health(HealthEndpoint.java:50) | ||
161 | + at org.springframework.boot.actuate.health.HealthEndpointWebExtension.health(HealthEndpointWebExtension.java:53) | ||
162 | + at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source) | ||
163 | + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | ||
164 | + at java.lang.reflect.Method.invoke(Method.java:498) | ||
165 | + at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:282) | ||
166 | + at org.springframework.boot.actuate.endpoint.invoke.reflect.ReflectiveOperationInvoker.invoke(ReflectiveOperationInvoker.java:76) | ||
167 | + at org.springframework.boot.actuate.endpoint.annotation.AbstractDiscoveredOperation.invoke(AbstractDiscoveredOperation.java:60) | ||
168 | + at org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$ServletWebOperationAdapter.handle(AbstractWebMvcEndpointHandlerMapping.java:278) | ||
169 | + at org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping$OperationHandler.handle(AbstractWebMvcEndpointHandlerMapping.java:334) | ||
170 | + at sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source) | ||
171 | + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | ||
172 | + at java.lang.reflect.Method.invoke(Method.java:498) | ||
173 | + at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) | ||
174 | + at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) | ||
175 | + at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104) | ||
176 | + at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892) | ||
177 | + at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797) | ||
178 | + at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) | ||
179 | + at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1039) | ||
180 | + at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942) | ||
181 | + at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005) | ||
182 | + at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:897) | ||
183 | + at javax.servlet.http.HttpServlet.service(HttpServlet.java:634) | ||
184 | + at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882) | ||
185 | + at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) | ||
186 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) | ||
187 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
188 | + at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) | ||
189 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
190 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
191 | + at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123) | ||
192 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
193 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
194 | + at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:88) | ||
195 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
196 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
197 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
198 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320) | ||
199 | + at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127) | ||
200 | + at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91) | ||
201 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
202 | + at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119) | ||
203 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
204 | + at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137) | ||
205 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
206 | + at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111) | ||
207 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
208 | + at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170) | ||
209 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
210 | + at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) | ||
211 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
212 | + at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116) | ||
213 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
214 | + at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:74) | ||
215 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
216 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
217 | + at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105) | ||
218 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
219 | + at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56) | ||
220 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
221 | + at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) | ||
222 | + at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215) | ||
223 | + at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178) | ||
224 | + at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357) | ||
225 | + at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270) | ||
226 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
227 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
228 | + at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) | ||
229 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
230 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
231 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
232 | + at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92) | ||
233 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
234 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
235 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
236 | + at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93) | ||
237 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
238 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
239 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
240 | + at org.springframework.cloud.sleuth.instrument.web.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.java:50) | ||
241 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
242 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
243 | + at brave.servlet.TracingFilter.doFilter(TracingFilter.java:99) | ||
244 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
245 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
246 | + at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:114) | ||
247 | + at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:104) | ||
248 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
249 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
250 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
251 | + at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200) | ||
252 | + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) | ||
253 | + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) | ||
254 | + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) | ||
255 | + at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) | ||
256 | + at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) | ||
257 | + at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) | ||
258 | + at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) | ||
259 | + at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) | ||
260 | + at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) | ||
261 | + at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) | ||
262 | + at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) | ||
263 | + at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) | ||
264 | + at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853) | ||
265 | + at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587) | ||
266 | + at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) | ||
267 | + at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) | ||
268 | + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) | ||
269 | + at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) | ||
270 | + at java.lang.Thread.run(Thread.java:748) | ||
271 | +2020-06-09 14:34:21.749 [http-nio-9011-exec-5] WARN c.n.d.s.t.decorator.RetryableEurekaHttpClient - Request execution failed with message: com.fasterxml.jackson.core.JsonParseException: processing aborted | ||
272 | + at [Source: (GZIPInputStream); line: 1, column: 18] | ||
273 | +2020-06-09 14:34:21.761 [http-nio-9011-exec-5] WARN com.netflix.discovery.DiscoveryClient - Using default backup registry implementation which does not do anything. |
1 | package com.sunyo.wlpt.cgonms.arrival; | 1 | package com.sunyo.wlpt.cgonms.arrival; |
2 | 2 | ||
3 | +import org.mybatis.spring.annotation.MapperScan; | ||
3 | import org.springframework.boot.SpringApplication; | 4 | import org.springframework.boot.SpringApplication; |
4 | import org.springframework.boot.autoconfigure.SpringBootApplication; | 5 | import org.springframework.boot.autoconfigure.SpringBootApplication; |
6 | +import org.springframework.cloud.netflix.eureka.EnableEurekaClient; | ||
7 | +import org.springframework.cloud.openfeign.EnableFeignClients; | ||
8 | +import org.springframework.scheduling.annotation.EnableScheduling; | ||
9 | +import org.springframework.transaction.annotation.EnableTransactionManagement; | ||
5 | 10 | ||
6 | /** | 11 | /** |
7 | * @author 子诚 | 12 | * @author 子诚 |
8 | * Description:服务程序入口类 | 13 | * Description:服务程序入口类 |
9 | * 时间:2020/6/9 11:45 | 14 | * 时间:2020/6/9 11:45 |
10 | */ | 15 | */ |
16 | +@EnableScheduling | ||
11 | @SpringBootApplication | 17 | @SpringBootApplication |
18 | +@MapperScan("com.sunyo.wlpt.cgonms.arrival.mapper") | ||
19 | +@EnableFeignClients | ||
20 | +@EnableEurekaClient | ||
21 | +@EnableTransactionManagement | ||
12 | public class CgonmsArrivalApplication { | 22 | public class CgonmsArrivalApplication { |
13 | 23 | ||
14 | public static void main(String[] args) { | 24 | public static void main(String[] args) { |
1 | +package com.sunyo.wlpt.cgonms.arrival.config; | ||
2 | + | ||
3 | +import org.springframework.beans.factory.annotation.Value; | ||
4 | +import org.springframework.context.annotation.Configuration; | ||
5 | +import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; | ||
6 | +import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; | ||
7 | + | ||
8 | +/** | ||
9 | + * @author 子诚 | ||
10 | + * Description:配置静态资源文件夹excel,与src同级。和操作该资源的路径 | ||
11 | + * 时间:2020/6/9 12:01 | ||
12 | + */ | ||
13 | +@Configuration | ||
14 | +public class MyWebMvcConfigurer implements WebMvcConfigurer { | ||
15 | + @Value("${path.dir}") | ||
16 | + private String dir; | ||
17 | + | ||
18 | + @Override | ||
19 | + public void addResourceHandlers(ResourceHandlerRegistry registry) { | ||
20 | + registry.addResourceHandler("/arrival/**").addResourceLocations("file:" + dir + "/"); | ||
21 | + WebMvcConfigurer.super.addResourceHandlers(registry); | ||
22 | + } | ||
23 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.config; | ||
2 | + | ||
3 | +import org.springframework.context.annotation.Configuration; | ||
4 | +import org.springframework.security.config.annotation.web.builders.HttpSecurity; | ||
5 | +import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; | ||
6 | +import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; | ||
7 | + | ||
8 | +/** | ||
9 | + * @author 子诚 | ||
10 | + * Description:SpringSecurity 权限配置框架 | ||
11 | + * 时间:2020/6/9 12:02 | ||
12 | + */ | ||
13 | +@EnableWebSecurity | ||
14 | +@Configuration | ||
15 | +public class SecurityConfig extends WebSecurityConfigurerAdapter { | ||
16 | + @Override | ||
17 | + protected void configure(HttpSecurity http) throws Exception { | ||
18 | + http.authorizeRequests() | ||
19 | + .antMatchers("/**","/arrival/**","/cgoNms/**","/ws/**") | ||
20 | + .permitAll() | ||
21 | + .and() | ||
22 | + .csrf().disable(); | ||
23 | + } | ||
24 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.controller; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.arrival.domain.*; | ||
4 | +import com.sunyo.wlpt.cgonms.arrival.feign.GetCgoAsmFeign; | ||
5 | +import com.sunyo.wlpt.cgonms.arrival.feign.GetTransportFeign; | ||
6 | +import com.sunyo.wlpt.cgonms.arrival.response.ResultWs; | ||
7 | +import com.sunyo.wlpt.cgonms.arrival.service.*; | ||
8 | +import com.sunyo.wlpt.cgonms.arrival.thread.ExitThreadPoolFactory; | ||
9 | +import com.sunyo.wlpt.cgonms.arrival.utils.GsonUtils; | ||
10 | +import com.sunyo.wlpt.cgonms.arrival.websocket.WebSocketServer; | ||
11 | +import lombok.extern.slf4j.Slf4j; | ||
12 | +import org.springframework.beans.propertyeditors.CustomDateEditor; | ||
13 | +import org.springframework.web.bind.WebDataBinder; | ||
14 | +import org.springframework.web.bind.annotation.*; | ||
15 | + | ||
16 | +import javax.annotation.Resource; | ||
17 | +import javax.servlet.http.HttpServletRequest; | ||
18 | +import java.io.IOException; | ||
19 | +import java.text.SimpleDateFormat; | ||
20 | +import java.util.Date; | ||
21 | +import java.util.List; | ||
22 | +import java.util.concurrent.CountDownLatch; | ||
23 | +import java.util.concurrent.ThreadPoolExecutor; | ||
24 | + | ||
25 | +/** | ||
26 | + * @author 子诚 | ||
27 | + * Description:多线程获取进港数据统计 | ||
28 | + * 时间:2020/6/9 15:41 | ||
29 | + */ | ||
30 | +@CrossOrigin | ||
31 | +@Slf4j | ||
32 | +@RequestMapping("cgoNms") | ||
33 | +@RestController | ||
34 | +public class NmsController { | ||
35 | + | ||
36 | + @Resource | ||
37 | + ResultArrivalDataService resultArrivalDataService; | ||
38 | + | ||
39 | + @Resource | ||
40 | + private PrepareMasterService prepareMasterService; | ||
41 | + | ||
42 | + @Resource | ||
43 | + private BasAirportService basAirportService; | ||
44 | + | ||
45 | + @Resource | ||
46 | + private TbAirportCodeService tbAirportCodeService; | ||
47 | + | ||
48 | + @Resource | ||
49 | + private BasAreaService basAreaService; | ||
50 | + | ||
51 | + @Resource | ||
52 | + private GetCgoAsmFeign getCgoAsmFeign; | ||
53 | + | ||
54 | + @Resource | ||
55 | + private GetTransportFeign getTransportFeign; | ||
56 | + | ||
57 | + /** | ||
58 | + * 线程数量 | ||
59 | + */ | ||
60 | + private final static int THREAD_ACCOUNT = 50; | ||
61 | + | ||
62 | + /** | ||
63 | + * 开启多线程 | ||
64 | + */ | ||
65 | + ThreadPoolExecutor threadPool = ExitThreadPoolFactory.instance(); | ||
66 | + | ||
67 | + /** | ||
68 | + * 获取开始时间,结束时间 | ||
69 | + */ | ||
70 | + final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); | ||
71 | + | ||
72 | + @GetMapping("/getInfo") | ||
73 | + public void getData( | ||
74 | + @RequestParam(value = "flightDate", required = false) Date flightDate, | ||
75 | + @RequestParam(value = "flightNo", required = false) String flightNo, | ||
76 | + HttpServletRequest request) { | ||
77 | + /* 获取token */ | ||
78 | + String sid = request.getHeader("Authorization"); | ||
79 | + log.info("token的值:" + sid); | ||
80 | + /* websocket,发送开始统计进港数据 */ | ||
81 | + String resultStart = GsonUtils.toJsonStr(new ResultWs("进港数据开始统计")); | ||
82 | + sendMsgByWebsocket(resultStart, sid); | ||
83 | + | ||
84 | + /* 查询出新舱单里面回执表里面的数据条件 */ | ||
85 | + ResultArrivalData resultArrivalData = new ResultArrivalData(); | ||
86 | + resultArrivalData.setFlightDate(flightDate); | ||
87 | + resultArrivalData.setFlightNo(flightNo); | ||
88 | + List<ResultArrivalData> resultList = resultArrivalDataService.getResultArrivalDataInfo(resultArrivalData); | ||
89 | + | ||
90 | + /* websocket,发送统计数据的数量 */ | ||
91 | + ResultWs resultTotal = new ResultWs("一共" + resultList.size() + "条数据", resultList.size()); | ||
92 | + String resultTotalJs = GsonUtils.toJsonStr(resultTotal); | ||
93 | + sendMsgByWebsocket(resultTotalJs, sid); | ||
94 | + | ||
95 | + //控制index,查询数据的时候,保证索引的位置不出错 | ||
96 | + int index = 0; | ||
97 | + try { | ||
98 | + /*如果数据大于50个,则每次获取前50条。逐次获取*/ | ||
99 | + if (resultList != null && !resultList.isEmpty() && resultList.size() > THREAD_ACCOUNT) { | ||
100 | + while (index < resultList.size()) { | ||
101 | + //如果剩余未处理的数量 大于 等于线程数量,则遍历次数为线程数量 | ||
102 | + if (resultList.size() - index >= THREAD_ACCOUNT) { | ||
103 | + CountDownLatch latch = new CountDownLatch(THREAD_ACCOUNT); | ||
104 | + int i; | ||
105 | + for (i = 0; i < THREAD_ACCOUNT; i++) { | ||
106 | + ResultArrivalData result = new ResultArrivalData(); | ||
107 | + result = threadJob(resultList.get(i + index), latch, threadPool); | ||
108 | + resultList.set(i, result); | ||
109 | + | ||
110 | + int temp = i + index; | ||
111 | + ResultWs resultWs = new ResultWs("获取数据,第" + temp + "条", "201", temp, resultList.size()); | ||
112 | + String resultJs = GsonUtils.toJsonStr(resultWs); | ||
113 | + | ||
114 | + sendMsgByWebsocket(resultJs, sid); | ||
115 | + } | ||
116 | + index = index + i; | ||
117 | + /*完成一次,就等待。等所有的全部完成,再一起返回 */ | ||
118 | + latch.await(); | ||
119 | + } | ||
120 | + //如果剩余未处理的数量小于线程数量,则遍历次数为 | ||
121 | + else if (resultList.size() - index < THREAD_ACCOUNT) { | ||
122 | + CountDownLatch latch = new CountDownLatch(resultList.size() - index); | ||
123 | + int i; | ||
124 | + for (i = 0; i < resultList.size() - index; i++) { | ||
125 | + ResultArrivalData result = new ResultArrivalData(); | ||
126 | + result = threadJob(resultList.get(i + index), latch, threadPool); | ||
127 | + | ||
128 | + int temp = i + index; | ||
129 | + ResultWs resultWs = new ResultWs("获取数据,第" + temp + "条", "201", temp, resultList.size()); | ||
130 | + | ||
131 | + String resultJs = GsonUtils.toJsonStr(resultWs); | ||
132 | + sendMsgByWebsocket(resultJs, sid); | ||
133 | + } | ||
134 | + index = index + i; | ||
135 | + /*完成一次,就等待。等所有的全部完成,再一起返回 */ | ||
136 | + latch.await(); | ||
137 | + } | ||
138 | + } | ||
139 | + } | ||
140 | + // 如果数据小于等于50个,则每次获取前50条。逐次获取 | ||
141 | + else if (resultList != null && !resultList.isEmpty() && resultList.size() <= THREAD_ACCOUNT) { | ||
142 | + CountDownLatch latch = new CountDownLatch(resultList.size()); | ||
143 | + for (int i = 0; i < resultList.size(); i++) { | ||
144 | + ResultArrivalData result = new ResultArrivalData(); | ||
145 | + result = threadJob(resultList.get(i), latch, threadPool); | ||
146 | + | ||
147 | + resultList.set(i, result); | ||
148 | + ResultWs resultWs = new ResultWs("获取数据,第" + i + "条", "201", i, resultList.size()); | ||
149 | + String resultJs = GsonUtils.toJsonStr(resultWs); | ||
150 | + | ||
151 | + sendMsgByWebsocket(resultJs, sid); | ||
152 | + } | ||
153 | + /*完成一次,就等待。等所有的全部完成,再一起返回 */ | ||
154 | + latch.await(); | ||
155 | + } | ||
156 | + } catch (Exception e) { | ||
157 | + e.printStackTrace(); | ||
158 | + log.error("获取数据出错", e); | ||
159 | + } | ||
160 | + /*websocket,发送全部数据 */ | ||
161 | + String resultJs = GsonUtils.toJsonStr(new ResultWs("获取数据,完成", resultList, "200", resultList.size(), resultList.size())); | ||
162 | + sendMsgByWebsocket(resultJs, sid); | ||
163 | + } | ||
164 | + | ||
165 | + /** | ||
166 | + * 使用线程获取数据. | ||
167 | + * | ||
168 | + * @param result 返回数据 | ||
169 | + * @param latch 计数器 | ||
170 | + * @param threadPool 线程池 | ||
171 | + * @return | ||
172 | + */ | ||
173 | + private ResultArrivalData threadJob(ResultArrivalData result, CountDownLatch latch, ThreadPoolExecutor threadPool) { | ||
174 | + Runnable run = new Runnable() { | ||
175 | + @Override | ||
176 | + public void run() { | ||
177 | + try { | ||
178 | + //设置航段 | ||
179 | + result.setSegment(result.getOriginatingStation() + " — " + result.getDestinationStation()); | ||
180 | + //设置承运人二字码 | ||
181 | + result.setCarrier(result.getFlightNo().substring(0, 2)); | ||
182 | + /** | ||
183 | + * 3.根据 理货信息 中的目的站代码,获取 新舱单机场代码表 中的相应数据 | ||
184 | + * | ||
185 | + * 机场所属城市代码 | ||
186 | + */ | ||
187 | + BasAirport ba = basAirportService.getBasAirportInfo(result.getDestinationStation()); | ||
188 | + | ||
189 | + /** | ||
190 | + * 4.根据 新舱单机场代码表 中的 机场所属城市代码 ,获取 天博——机场代码表 的相应数据 | ||
191 | + * | ||
192 | + * 城市代码 | ||
193 | + * 区域id | ||
194 | + * 国家代码 | ||
195 | + */ | ||
196 | + TbAirportCode ta = tbAirportCodeService.getTbAirportCodeInfo(ba.getCityId()); | ||
197 | + // 所属国家代码 | ||
198 | + result.setCountry(ta.getCountry()); | ||
199 | + | ||
200 | + /** | ||
201 | + * 5.根据 天博——机场代码表 中的 区域id,获取 新舱单——区域代码表 的相应数据 | ||
202 | + * | ||
203 | + * 区域id | ||
204 | + * 国际国内标识;1,国外;2,国内 | ||
205 | + * 区域描述,中文 | ||
206 | + */ | ||
207 | + BasArea basArea = basAreaService.getBasAreaInfo(ta.getArea()); | ||
208 | + | ||
209 | + //航班目的区域,中文描述,所属洲 | ||
210 | + result.setAreaDescChn(basArea.getAreaDescChn()); | ||
211 | + | ||
212 | + // 6.根据 理货信息 中的运单号,获取预配表中的相应数据 | ||
213 | + List<PrepareMaster> pm = prepareMasterService.getPrepareMasterInfo(result.getWaybillNoMaster()); | ||
214 | + if (pm != null && pm.size() > 0) { | ||
215 | + //发货人名称 | ||
216 | + result.setShipperName(pm.get(0).getShipperName()); | ||
217 | + //收货人名称 | ||
218 | + result.setConsigneeName(pm.get(0).getConsigneeName()); | ||
219 | + //获取目的货物目的站 | ||
220 | + result.setAimStation(pm.get(0).getDestinationStation()); | ||
221 | + } | ||
222 | + | ||
223 | + /** | ||
224 | + * 获取代理人的相关数据 | ||
225 | + */ | ||
226 | + ResultArrivalData asmInfo = new ResultArrivalData(); | ||
227 | + asmInfo = getCgoAsmFeign.getInfo(result.getWaybillNoMaster()); | ||
228 | + //设置结算代理人 | ||
229 | + result.setCountName(asmInfo.getCountName()); | ||
230 | + //设置订舱代理人 | ||
231 | + result.setOrderName(asmInfo.getOrderName()); | ||
232 | + //设置品名 | ||
233 | + result.setSdCargoName(asmInfo.getSdCargoName()); | ||
234 | + //设置二级类名称 | ||
235 | + result.setTwoTypeName(asmInfo.getTwoTypeName()); | ||
236 | + //设置一级类名称 | ||
237 | + result.setTypeName(asmInfo.getTypeName()); | ||
238 | + } catch (Exception e) { | ||
239 | + latch.countDown(); | ||
240 | + e.printStackTrace(); | ||
241 | + } | ||
242 | + latch.countDown(); | ||
243 | + } | ||
244 | + }; | ||
245 | + threadPool.execute(run); | ||
246 | + return result; | ||
247 | + } | ||
248 | + | ||
249 | + | ||
250 | + /** | ||
251 | + * 由于前台传过来的时间参数是字符串,故转一下格式 | ||
252 | + * | ||
253 | + * @param binder 转换器 | ||
254 | + */ | ||
255 | + @InitBinder | ||
256 | + public void initBinder(WebDataBinder binder) { | ||
257 | + SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); | ||
258 | + dateFormat.setLenient(false); | ||
259 | + binder.registerCustomEditor(Date.class, new CustomDateEditor(dateFormat, true)); | ||
260 | + } | ||
261 | + | ||
262 | + /** | ||
263 | + * @param msg JSON字符串 | ||
264 | + * @param sid 唯一识别值 | ||
265 | + */ | ||
266 | + private void sendMsgByWebsocket(String msg, String sid) { | ||
267 | + try { | ||
268 | + WebSocketServer.sendInfo(msg, sid); | ||
269 | + } catch (IOException e) { | ||
270 | + e.printStackTrace(); | ||
271 | + } | ||
272 | + } | ||
273 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.domain; | ||
2 | + | ||
3 | +import lombok.AllArgsConstructor; | ||
4 | +import lombok.Data; | ||
5 | +import lombok.NoArgsConstructor; | ||
6 | + | ||
7 | +import java.io.Serializable; | ||
8 | + | ||
9 | +/** | ||
10 | + * @author 子诚 | ||
11 | + * Description:实体类:新舱单机场代码表 | ||
12 | + * 时间:2020/5/20 11:28 | ||
13 | + */ | ||
14 | +@Data | ||
15 | +@AllArgsConstructor | ||
16 | +@NoArgsConstructor | ||
17 | +public class BasAirport implements Serializable { | ||
18 | + | ||
19 | + private static final long serialVersionUID = -5011627541236150393L; | ||
20 | + | ||
21 | + /** | ||
22 | + * 机场站代码 | ||
23 | + */ | ||
24 | + private String airportId; | ||
25 | + | ||
26 | + /** | ||
27 | + * 机场所属城市代码 | ||
28 | + */ | ||
29 | + private String cityId; | ||
30 | + | ||
31 | + | ||
32 | + /** | ||
33 | + * 我也不知道啥意思 | ||
34 | + * 机场4代码 | ||
35 | + */ | ||
36 | +// private String airport4Code; | ||
37 | + | ||
38 | + /** | ||
39 | + * 机场描述,中文 | ||
40 | + */ | ||
41 | +// private String airportDescChn; | ||
42 | + | ||
43 | + /** | ||
44 | + * 机场描述,英文 | ||
45 | + */ | ||
46 | +// private String airportDescEng; | ||
47 | + | ||
48 | + /** | ||
49 | + * 操作时间 | ||
50 | + */ | ||
51 | +// private Date operationTime; | ||
52 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.domain; | ||
2 | + | ||
3 | +import lombok.AllArgsConstructor; | ||
4 | +import lombok.Data; | ||
5 | +import lombok.NoArgsConstructor; | ||
6 | + | ||
7 | +import java.io.Serializable; | ||
8 | + | ||
9 | +/** | ||
10 | + * @author 子诚 | ||
11 | + * Description:实体类:新舱单——区域代码表 | ||
12 | + * 时间:2020/5/20 11:47 | ||
13 | + */ | ||
14 | +@Data | ||
15 | +@AllArgsConstructor | ||
16 | +@NoArgsConstructor | ||
17 | +public class BasArea implements Serializable { | ||
18 | + | ||
19 | + private static final long serialVersionUID = -1060565664409722759L; | ||
20 | + | ||
21 | + /** | ||
22 | + * 区域id | ||
23 | + */ | ||
24 | + private String areaId; | ||
25 | + | ||
26 | + /** | ||
27 | + * 国际国内标识;1,国外;2,国内 | ||
28 | + */ | ||
29 | + private String netId; | ||
30 | + | ||
31 | + /** | ||
32 | + * 区域描述,中文 | ||
33 | + */ | ||
34 | + private String areaDescChn; | ||
35 | + | ||
36 | +// private String areaDescEng; | ||
37 | +// | ||
38 | +// private Date operationTime; | ||
39 | + | ||
40 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.domain; | ||
2 | + | ||
3 | +import lombok.AllArgsConstructor; | ||
4 | +import lombok.Data; | ||
5 | +import lombok.NoArgsConstructor; | ||
6 | + | ||
7 | +import java.io.Serializable; | ||
8 | + | ||
9 | +/** | ||
10 | + * @author 子诚 | ||
11 | + * Description:实体类:新舱单——预配表 | ||
12 | + * 时间:2020/5/20 11:12 | ||
13 | + */ | ||
14 | +@Data | ||
15 | +@AllArgsConstructor | ||
16 | +@NoArgsConstructor | ||
17 | +public class PrepareMaster implements Serializable { | ||
18 | + | ||
19 | + private static final long serialVersionUID = 7073373008863847070L; | ||
20 | + /** | ||
21 | + * 发货人名称 | ||
22 | + */ | ||
23 | + private String shipperName; | ||
24 | + | ||
25 | + /** | ||
26 | + * 收货人名称 | ||
27 | + */ | ||
28 | + private String consigneeName; | ||
29 | + | ||
30 | + /** | ||
31 | + * 运单号 | ||
32 | + */ | ||
33 | + private String waybillNoMaster; | ||
34 | + /** | ||
35 | + * 航班目的站,货物目的站 | ||
36 | + */ | ||
37 | + private String destinationStation; | ||
38 | + | ||
39 | + | ||
40 | + /** | ||
41 | + * id | ||
42 | + */ | ||
43 | +// private String autoId; | ||
44 | +// /** | ||
45 | +// * 承运人二字码 | ||
46 | +// */ | ||
47 | +// private String carrier; | ||
48 | +// | ||
49 | +// | ||
50 | +// | ||
51 | +// /** | ||
52 | +// * 航班号 | ||
53 | +// */ | ||
54 | +// private String flightNo; | ||
55 | +// | ||
56 | +// /** | ||
57 | +// * 航班日期 | ||
58 | +// */ | ||
59 | +// private Date flightDate; | ||
60 | +// | ||
61 | +// /** | ||
62 | +// * 航班起始站 | ||
63 | +// */ | ||
64 | +// private String originatingStation; | ||
65 | +// | ||
66 | +// | ||
67 | +// | ||
68 | +// | ||
69 | +// | ||
70 | +// private String totalWeight; | ||
71 | +// | ||
72 | +// private String totalPiece; | ||
73 | +// | ||
74 | +// /** | ||
75 | +// * 预配,理货件数 | ||
76 | +// */ | ||
77 | +// private String prepareTotalPiece; | ||
78 | +// | ||
79 | +// /** | ||
80 | +// * 预配,理货重量 | ||
81 | +// */ | ||
82 | +// private String prepareTotalWeight; | ||
83 | +// | ||
84 | +// private Date stowageDate; | ||
85 | +// | ||
86 | +// private String status; | ||
87 | +// | ||
88 | +// private String customsStatus; | ||
89 | +// | ||
90 | +// private String payMode; | ||
91 | +// | ||
92 | +// private String customsCode; | ||
93 | +// | ||
94 | +// /** | ||
95 | +// * 代理人代码 | ||
96 | +// */ | ||
97 | +// private String agentCode; | ||
98 | +// | ||
99 | +// /** | ||
100 | +// * 代理人姓名 | ||
101 | +// */ | ||
102 | +// private String agentName; | ||
103 | +// | ||
104 | +// private String shipperCity; | ||
105 | +// | ||
106 | +// private String shipperAddress; | ||
107 | +// | ||
108 | +// private String consigneeCity; | ||
109 | +// | ||
110 | +// private String consigneeAddress; | ||
111 | +// | ||
112 | +// private String receiptInformation; | ||
113 | +// | ||
114 | +// private Date createDate; | ||
115 | +// | ||
116 | +// private String productName; | ||
117 | +// | ||
118 | +// private String shipperCode; | ||
119 | +// | ||
120 | +// private String shipperCountrycode; | ||
121 | +// | ||
122 | +// private String shipperPhone; | ||
123 | +// | ||
124 | +// private String shipperFax; | ||
125 | +// | ||
126 | +// private String consigneeCode; | ||
127 | +// | ||
128 | +// private String consigneeCountrycode; | ||
129 | +// | ||
130 | +// private String consigneeFax; | ||
131 | +// | ||
132 | +// private String consigneePhone; | ||
133 | +// | ||
134 | +// private String shipperAeo; | ||
135 | +// | ||
136 | +// private String consigneeAeo; | ||
137 | +// | ||
138 | +// private String unloadingStation; | ||
139 | + | ||
140 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.domain; | ||
2 | + | ||
3 | +import java.io.Serializable; | ||
4 | +import java.util.Date; | ||
5 | + | ||
6 | +import com.fasterxml.jackson.annotation.JsonFormat; | ||
7 | +import lombok.AllArgsConstructor; | ||
8 | +import lombok.Data; | ||
9 | +import lombok.NoArgsConstructor; | ||
10 | + | ||
11 | +/** | ||
12 | + * @author 子诚 | ||
13 | + * Description:进港统计结果集 | ||
14 | + * 时间:2020/6/9 15:21 | ||
15 | + */ | ||
16 | +@Data | ||
17 | +@AllArgsConstructor | ||
18 | +@NoArgsConstructor | ||
19 | +public class ResultArrivalData implements Serializable { | ||
20 | + | ||
21 | + private static final long serialVersionUID = 7514297833139174998L; | ||
22 | + | ||
23 | + /** | ||
24 | + * 1、id | ||
25 | + */ | ||
26 | + private String autoId; | ||
27 | + | ||
28 | + /** | ||
29 | + * 2、运单号 | ||
30 | + */ | ||
31 | + private String waybillNoMaster; | ||
32 | + | ||
33 | + /** | ||
34 | + * 3、航班号 | ||
35 | + */ | ||
36 | + private String flightNo; | ||
37 | + | ||
38 | + /** | ||
39 | + * 4、航班日期 | ||
40 | + */ | ||
41 | + @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") | ||
42 | + private Date flightDate; | ||
43 | + | ||
44 | + /** | ||
45 | + * 5、出发站 | ||
46 | + */ | ||
47 | + private String originatingStation; | ||
48 | + | ||
49 | + /** | ||
50 | + * 6、目的站 | ||
51 | + */ | ||
52 | + private String destinationStation; | ||
53 | + | ||
54 | + /** | ||
55 | + * 7、件数 | ||
56 | + */ | ||
57 | + private String totalPiece; | ||
58 | + | ||
59 | + /** | ||
60 | + * 8、重量 | ||
61 | + */ | ||
62 | + private String totalWeight; | ||
63 | + | ||
64 | + /** | ||
65 | + * 9、航段 | ||
66 | + */ | ||
67 | + private String segment; | ||
68 | + | ||
69 | + /** | ||
70 | + * 10.承运人二字码 | ||
71 | + */ | ||
72 | + private String carrier; | ||
73 | + | ||
74 | + /** | ||
75 | + * 11.发货人名称 | ||
76 | + */ | ||
77 | + private String shipperName; | ||
78 | + | ||
79 | + /** | ||
80 | + * 12.收货人名称 | ||
81 | + */ | ||
82 | + private String consigneeName; | ||
83 | + | ||
84 | + /** | ||
85 | + * 13.货物目的站 | ||
86 | + */ | ||
87 | + private String aimStation; | ||
88 | + | ||
89 | + /** | ||
90 | + * 14.国家代码 | ||
91 | + */ | ||
92 | + private String country; | ||
93 | + | ||
94 | + /** | ||
95 | + * 15.航班目的区域,中文描述,所属洲 | ||
96 | + */ | ||
97 | + private String areaDescChn; | ||
98 | + | ||
99 | + /** | ||
100 | + * 16.订仓代理人 | ||
101 | + */ | ||
102 | + private String orderName; | ||
103 | + | ||
104 | + /** | ||
105 | + * 17.结算代理人 | ||
106 | + */ | ||
107 | + private String countName; | ||
108 | + | ||
109 | + /** | ||
110 | + * 代理人服务 | ||
111 | + * 18.品名 | ||
112 | + */ | ||
113 | + private String sdCargoName; | ||
114 | + | ||
115 | + /** | ||
116 | + * 代理人服务 | ||
117 | + * 19.二级类名称 | ||
118 | + */ | ||
119 | + private String twoTypeName; | ||
120 | + | ||
121 | + /** | ||
122 | + * 代理人服务 | ||
123 | + * 20.一级类名称 | ||
124 | + */ | ||
125 | + private String typeName; | ||
126 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.domain; | ||
2 | + | ||
3 | +import lombok.AllArgsConstructor; | ||
4 | +import lombok.Data; | ||
5 | +import lombok.NoArgsConstructor; | ||
6 | + | ||
7 | +import java.io.Serializable; | ||
8 | + | ||
9 | +/** | ||
10 | + * @author 子诚 | ||
11 | + * Description:实体类:天博——机场代码表 | ||
12 | + * 时间:2020/5/20 11:41 | ||
13 | + */ | ||
14 | +@Data | ||
15 | +@AllArgsConstructor | ||
16 | +@NoArgsConstructor | ||
17 | +public class TbAirportCode implements Serializable { | ||
18 | + | ||
19 | + private static final long serialVersionUID = -5787801791887231439L; | ||
20 | + | ||
21 | + /** | ||
22 | + * 城市代码 | ||
23 | + */ | ||
24 | + private String cityCode; | ||
25 | + | ||
26 | + /** | ||
27 | + * 区域id | ||
28 | + */ | ||
29 | + private String area; | ||
30 | + | ||
31 | + /** | ||
32 | + * 国家代码 | ||
33 | + */ | ||
34 | + private String country; | ||
35 | + | ||
36 | +// private String civilCode; | ||
37 | +// | ||
38 | +// private String chineseDescription; | ||
39 | +// | ||
40 | +// private String englishDescription; | ||
41 | +// | ||
42 | +// /** | ||
43 | +// * 城市 | ||
44 | +// */ | ||
45 | +// private String city; | ||
46 | +// | ||
47 | +// /** | ||
48 | +// * 时区 | ||
49 | +// */ | ||
50 | +// private String timeZone; | ||
51 | + | ||
52 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.feign; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.arrival.domain.ResultArrivalData; | ||
4 | + | ||
5 | +import org.springframework.stereotype.Service; | ||
6 | + | ||
7 | +/** | ||
8 | + * @author 子诚 | ||
9 | + * Description: | ||
10 | + * 时间:2020/5/22 9:14 | ||
11 | + */ | ||
12 | + | ||
13 | +@Service | ||
14 | +public class GetCgoAsmFeginHystrix implements GetCgoAsmFeign{ | ||
15 | + | ||
16 | + @Override | ||
17 | + public ResultArrivalData getInfo(String waybillNoMaster) { | ||
18 | + System.out.println("与代理人服务断开连接,获取代理人服务信息失败"); | ||
19 | + return null; | ||
20 | + } | ||
21 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.feign; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.arrival.domain.ResultArrivalData; | ||
4 | +import org.springframework.cloud.openfeign.FeignClient; | ||
5 | +import org.springframework.stereotype.Component; | ||
6 | +import org.springframework.web.bind.annotation.GetMapping; | ||
7 | +import org.springframework.web.bind.annotation.RequestParam; | ||
8 | + | ||
9 | +/** | ||
10 | + * @author 子诚 | ||
11 | + * Description:根据运单号查询代理人服务的相关数据 | ||
12 | + * 时间:2020/5/21 17:43 | ||
13 | + */ | ||
14 | +@Component | ||
15 | +@FeignClient(value = "cgoasm-provide", fallback = GetCgoAsmFeginHystrix.class) | ||
16 | +public interface GetCgoAsmFeign { | ||
17 | + /** | ||
18 | + * 根据运单号查询代理人服务的相关数据 | ||
19 | + * | ||
20 | + * @param waybillNoMaster 运单号 | ||
21 | + * @return | ||
22 | + */ | ||
23 | + @GetMapping("/cgoasm/getInfo") | ||
24 | + ResultArrivalData getInfo(@RequestParam(value = "waybillNoMaster", required = false) String waybillNoMaster); | ||
25 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.feign; | ||
2 | + | ||
3 | +/** | ||
4 | + * @author 子诚 | ||
5 | + * Description: | ||
6 | + * 时间:2020/5/22 14:30 | ||
7 | + */ | ||
8 | + | ||
9 | +import com.sunyo.wlpt.cgonms.arrival.domain.ResultArrivalData; | ||
10 | + | ||
11 | +import org.springframework.cloud.openfeign.FeignClient; | ||
12 | +import org.springframework.stereotype.Component; | ||
13 | +import org.springframework.web.bind.annotation.GetMapping; | ||
14 | +import org.springframework.web.bind.annotation.RequestParam; | ||
15 | + | ||
16 | +import java.util.Date; | ||
17 | + | ||
18 | +@Component | ||
19 | +@FeignClient(value = "transport-provide", fallback = GetTransportFeignHystrix.class) | ||
20 | +public interface GetTransportFeign { | ||
21 | + /** | ||
22 | + * 根据承运人二字码、航班号、航班日期,获取,运输工具服务中的相关数据 | ||
23 | + * 航空公司、机型、机号、实际起飞时间、计划起飞时间 | ||
24 | + * | ||
25 | + * @param flightNo 航班号 | ||
26 | + * @param flightDate 航班日期 | ||
27 | + * @return | ||
28 | + */ | ||
29 | + @GetMapping("/transport/getInfo") | ||
30 | + public ResultArrivalData getInfo(@RequestParam(value = "flightNo", required = false) String flightNo, | ||
31 | + @RequestParam(value = "flightDate", required = false) Date flightDate); | ||
32 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.feign; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.arrival.domain.ResultArrivalData; | ||
4 | +import org.springframework.stereotype.Service; | ||
5 | + | ||
6 | +import java.util.Date; | ||
7 | + | ||
8 | +/** | ||
9 | + * @author 子诚 | ||
10 | + * Description:运输工具feign的熔断器 | ||
11 | + * 时间:2020/5/22 14:32 | ||
12 | + */ | ||
13 | +@Service | ||
14 | +public class GetTransportFeignHystrix implements GetTransportFeign { | ||
15 | + | ||
16 | + @Override | ||
17 | + public ResultArrivalData getInfo(String flightNo, Date flightDate) { | ||
18 | + System.out.println("与“运输工具”服务断开连接,获取“运输工具”服务信息失败"); | ||
19 | + return null; | ||
20 | + } | ||
21 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.mapper; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.arrival.domain.BasAirport; | ||
4 | +import org.apache.ibatis.annotations.Mapper; | ||
5 | + | ||
6 | +/** | ||
7 | + * @author 子诚 | ||
8 | + * Description: | ||
9 | + * 时间:2020/5/20 11:28 | ||
10 | + */ | ||
11 | +@Mapper | ||
12 | +public interface BasAirportMapper { | ||
13 | + /** | ||
14 | + * 获取 新舱单机场代码表 中的相应数据 | ||
15 | + * | ||
16 | + * @param destinationStation 航班目的站 | ||
17 | + * @return {@link BasAirport} | ||
18 | + */ | ||
19 | + BasAirport getBasAirportInfo(String destinationStation); | ||
20 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.mapper; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.arrival.domain.BasArea; | ||
4 | +import org.apache.ibatis.annotations.Mapper; | ||
5 | + | ||
6 | +/** | ||
7 | + * @author 子诚 | ||
8 | + * Description: | ||
9 | + * 时间:2020/5/20 11:47 | ||
10 | + */ | ||
11 | +@Mapper | ||
12 | +public interface BasAreaMapper { | ||
13 | + /** | ||
14 | + * 获取 新舱单——区域代码表 的相应数据. | ||
15 | + * | ||
16 | + * @param area 区域id | ||
17 | + * @return {@link BasArea} | ||
18 | + */ | ||
19 | + BasArea getBasAreaInfo(String area); | ||
20 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.mapper; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.arrival.domain.PrepareMaster; | ||
4 | +import org.apache.ibatis.annotations.Mapper; | ||
5 | + | ||
6 | +import java.util.List; | ||
7 | + | ||
8 | +/** | ||
9 | + * @author 子诚 | ||
10 | + * Description: | ||
11 | + * 时间:2020/5/20 11:12 | ||
12 | + */ | ||
13 | +@Mapper | ||
14 | +public interface PrepareMasterMapper { | ||
15 | + /** | ||
16 | + * 获取预配表中的相应数据. | ||
17 | + * | ||
18 | + * @param waybillNoMaster 运单号 | ||
19 | + * @return {@link PrepareMaster} | ||
20 | + */ | ||
21 | + List<PrepareMaster> getPrepareMasterInfo(String waybillNoMaster); | ||
22 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.mapper; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.arrival.domain.ResultArrivalData; | ||
4 | +import org.apache.ibatis.annotations.Mapper; | ||
5 | + | ||
6 | +import java.util.List; | ||
7 | + | ||
8 | +/** | ||
9 | + * @author 子诚 | ||
10 | + * Description: | ||
11 | + * 时间:2020/6/9 15:21 | ||
12 | + */ | ||
13 | +@Mapper | ||
14 | +public interface ResultArrivalDataMapper { | ||
15 | + /** | ||
16 | + * 查询新舱单进港回执表的信息 | ||
17 | + * | ||
18 | + * @param resultArrivalData | ||
19 | + * @return | ||
20 | + */ | ||
21 | + List<ResultArrivalData> getResultArrivalDataInfo(ResultArrivalData resultArrivalData); | ||
22 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.mapper; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.arrival.domain.TbAirportCode; | ||
4 | +import org.apache.ibatis.annotations.Mapper; | ||
5 | + | ||
6 | +/** | ||
7 | + * @author 子诚 | ||
8 | + * Description: | ||
9 | + * 时间:2020/5/20 11:41 | ||
10 | + */ | ||
11 | +@Mapper | ||
12 | +public interface TbAirportCodeMapper { | ||
13 | + /** | ||
14 | + * 获取 天博——机场代码表 的相应数据. | ||
15 | + * | ||
16 | + * @param cityId 城市id | ||
17 | + * @return {@link TbAirportCode} | ||
18 | + */ | ||
19 | + TbAirportCode getTbAirportCodeInfo(String cityId); | ||
20 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.response; | ||
2 | + | ||
3 | +import lombok.Data; | ||
4 | + | ||
5 | +import java.io.Serializable; | ||
6 | + | ||
7 | +/** | ||
8 | + * @author 子诚 | ||
9 | + * Description:返回结果封装类 | ||
10 | + * 时间:2020/4/24 10:06 | ||
11 | + */ | ||
12 | +@Data | ||
13 | +public class ResultJson<T> implements Serializable { | ||
14 | + | ||
15 | + private static final long serialVersionUID = 1L; | ||
16 | + | ||
17 | + /** | ||
18 | + * 响应业务状态,默认为200 | ||
19 | + */ | ||
20 | + private String code = "200"; | ||
21 | + | ||
22 | + /** | ||
23 | + * 响应消息 | ||
24 | + */ | ||
25 | + private String msg = ""; | ||
26 | + | ||
27 | + private String error; | ||
28 | + | ||
29 | + /** | ||
30 | + * 响应数据 | ||
31 | + */ | ||
32 | + private T data; | ||
33 | + | ||
34 | + /** | ||
35 | + * JWT令牌 | ||
36 | + */ | ||
37 | + private String jwtToken; | ||
38 | + | ||
39 | + /** | ||
40 | + * 无参,构造方法 | ||
41 | + */ | ||
42 | + public ResultJson() { | ||
43 | + } | ||
44 | + | ||
45 | + /** | ||
46 | + * 有参,构造方法; | ||
47 | + * 重载 | ||
48 | + */ | ||
49 | + public ResultJson(String code) { | ||
50 | + this.code = code; | ||
51 | + } | ||
52 | + | ||
53 | + public ResultJson(T data) { | ||
54 | + this.data = data; | ||
55 | + } | ||
56 | + | ||
57 | + public ResultJson(String code, String msg) { | ||
58 | + this.code = code; | ||
59 | + this.msg = msg; | ||
60 | + } | ||
61 | + | ||
62 | + public ResultJson(String code, String msg, T data) { | ||
63 | + this.code = code; | ||
64 | + this.msg = msg; | ||
65 | + this.data = data; | ||
66 | + } | ||
67 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.response; | ||
2 | + | ||
3 | +import lombok.Data; | ||
4 | + | ||
5 | +import java.io.Serializable; | ||
6 | + | ||
7 | +/** | ||
8 | + * @author 子诚 | ||
9 | + * Description: | ||
10 | + * 时间:2020/5/28 16:59 | ||
11 | + */ | ||
12 | +@Data | ||
13 | +public class ResultWs<T> implements Serializable { | ||
14 | + | ||
15 | + private static final long serialVersionUID = -1412519603409652504L; | ||
16 | + | ||
17 | + String sid; | ||
18 | + | ||
19 | + /** | ||
20 | + * 响应消息 | ||
21 | + */ | ||
22 | + String message; | ||
23 | + | ||
24 | + /** | ||
25 | + * 响应数据 | ||
26 | + */ | ||
27 | + T data; | ||
28 | + | ||
29 | + public ResultWs(String message, T data, String status, int currentNum, int totalNum) { | ||
30 | + this.message = message; | ||
31 | + this.data = data; | ||
32 | + this.status = status; | ||
33 | + this.currentNum = currentNum; | ||
34 | + this.totalNum = totalNum; | ||
35 | + } | ||
36 | + | ||
37 | + /** | ||
38 | + * 当前是第几条 | ||
39 | + */ | ||
40 | + int currentNum; | ||
41 | + | ||
42 | + /** | ||
43 | + * 总条数 | ||
44 | + */ | ||
45 | + int totalNum; | ||
46 | + | ||
47 | + /** | ||
48 | + * 状态 | ||
49 | + */ | ||
50 | + String status; | ||
51 | + | ||
52 | + public ResultWs() { | ||
53 | + } | ||
54 | + | ||
55 | + public ResultWs(String message, int totalNum) { | ||
56 | + this.message = message; | ||
57 | + this.totalNum = totalNum; | ||
58 | + } | ||
59 | + | ||
60 | + public ResultWs(String message, String status, int currentNum, int totalNum) { | ||
61 | + this.message = message; | ||
62 | + this.status = status; | ||
63 | + this.currentNum = currentNum; | ||
64 | + this.totalNum = totalNum; | ||
65 | + } | ||
66 | + | ||
67 | + public ResultWs(String message, String status) { | ||
68 | + this.message = message; | ||
69 | + this.status = status; | ||
70 | + } | ||
71 | + | ||
72 | + public ResultWs(String message, T data) { | ||
73 | + this.message = message; | ||
74 | + this.data = data; | ||
75 | + } | ||
76 | + | ||
77 | + | ||
78 | + public ResultWs(String message, T data, String status) { | ||
79 | + this.message = message; | ||
80 | + this.data = data; | ||
81 | + this.status = status; | ||
82 | + } | ||
83 | + | ||
84 | + | ||
85 | + public ResultWs(String message) { | ||
86 | + this.message = message; | ||
87 | + } | ||
88 | + | ||
89 | + public ResultWs(String sid, String message, T data, String status) { | ||
90 | + this.sid = sid; | ||
91 | + this.message = message; | ||
92 | + this.data = data; | ||
93 | + this.status = status; | ||
94 | + } | ||
95 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.service; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.arrival.domain.BasAirport; | ||
4 | + | ||
5 | +/** | ||
6 | + * @author 子诚 | ||
7 | + * Description: | ||
8 | + * 时间:2020/5/20 11:28 | ||
9 | + */ | ||
10 | +public interface BasAirportService { | ||
11 | + | ||
12 | + /** | ||
13 | + * 获取 新舱单机场代码表 中的相应数据 | ||
14 | + * | ||
15 | + * @param destinationStation 航班目的站 | ||
16 | + * @return {@link BasAirport} | ||
17 | + */ | ||
18 | + BasAirport getBasAirportInfo(String destinationStation); | ||
19 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.service; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.arrival.domain.BasArea; | ||
4 | + | ||
5 | +/** | ||
6 | + * @author 子诚 | ||
7 | + * Description: | ||
8 | + * 时间:2020/5/20 11:47 | ||
9 | + */ | ||
10 | +public interface BasAreaService { | ||
11 | + | ||
12 | + /** | ||
13 | + * 获取 新舱单——区域代码表 的相应数据. | ||
14 | + * | ||
15 | + * @param area 区域id | ||
16 | + * @return {@link BasArea} | ||
17 | + */ | ||
18 | + BasArea getBasAreaInfo(String area); | ||
19 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.service; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.arrival.domain.PrepareMaster; | ||
4 | + | ||
5 | +import java.util.List; | ||
6 | + | ||
7 | +/** | ||
8 | + * @author 子诚 | ||
9 | + * Description: | ||
10 | + * 时间:2020/5/20 11:12 | ||
11 | + */ | ||
12 | +public interface PrepareMasterService { | ||
13 | + | ||
14 | + /** | ||
15 | + * 获取预配表中的相应数据. | ||
16 | + * | ||
17 | + * @param waybillNoMaster 运单号 | ||
18 | + * @return {@link PrepareMaster} | ||
19 | + */ | ||
20 | + List<PrepareMaster> getPrepareMasterInfo(String waybillNoMaster); | ||
21 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.service; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.arrival.domain.ResultArrivalData; | ||
4 | + | ||
5 | +import java.util.List; | ||
6 | + | ||
7 | +/** | ||
8 | + * @author 子诚 | ||
9 | + * Description: | ||
10 | + * 时间:2020/6/9 15:21 | ||
11 | + */ | ||
12 | +public interface ResultArrivalDataService { | ||
13 | + | ||
14 | + /** | ||
15 | + * 查询新舱单进港回执表的信息 | ||
16 | + * | ||
17 | + * @param resultArrivalData | ||
18 | + * @return | ||
19 | + */ | ||
20 | + List<ResultArrivalData> getResultArrivalDataInfo(ResultArrivalData resultArrivalData); | ||
21 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.service; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.arrival.domain.TbAirportCode; | ||
4 | + | ||
5 | +/** | ||
6 | + * @author 子诚 | ||
7 | + * Description: | ||
8 | + * 时间:2020/5/20 11:41 | ||
9 | + */ | ||
10 | +public interface TbAirportCodeService { | ||
11 | + | ||
12 | + /** | ||
13 | + * 获取 天博——机场代码表 的相应数据. | ||
14 | + * | ||
15 | + * @param cityId 城市id | ||
16 | + * @return {@link TbAirportCode} | ||
17 | + */ | ||
18 | + TbAirportCode getTbAirportCodeInfo(String cityId); | ||
19 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.service.impl; | ||
2 | + | ||
3 | + | ||
4 | +import com.sunyo.wlpt.cgonms.arrival.domain.BasAirport; | ||
5 | +import com.sunyo.wlpt.cgonms.arrival.mapper.BasAirportMapper; | ||
6 | +import com.sunyo.wlpt.cgonms.arrival.service.BasAirportService; | ||
7 | +import org.springframework.stereotype.Service; | ||
8 | + | ||
9 | +import javax.annotation.Resource; | ||
10 | + | ||
11 | +/** | ||
12 | + * @author 子诚 | ||
13 | + * Description: | ||
14 | + * 时间:2020/5/20 11:28 | ||
15 | + */ | ||
16 | +@Service | ||
17 | +public class BasAirportServiceImpl implements BasAirportService { | ||
18 | + | ||
19 | + @Resource | ||
20 | + private com.sunyo.wlpt.cgonms.arrival.mapper.BasAirportMapper BasAirportMapper; | ||
21 | + | ||
22 | + @Override | ||
23 | + public BasAirport getBasAirportInfo(String destinationStation) { | ||
24 | + return BasAirportMapper.getBasAirportInfo(destinationStation); | ||
25 | + } | ||
26 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.service.impl; | ||
2 | + | ||
3 | + | ||
4 | +import com.sunyo.wlpt.cgonms.arrival.domain.BasArea; | ||
5 | +import com.sunyo.wlpt.cgonms.arrival.mapper.BasAreaMapper; | ||
6 | +import com.sunyo.wlpt.cgonms.arrival.service.BasAreaService; | ||
7 | +import org.springframework.stereotype.Service; | ||
8 | + | ||
9 | +import javax.annotation.Resource; | ||
10 | + | ||
11 | +/** | ||
12 | + * @author 子诚 | ||
13 | + * Description: | ||
14 | + * 时间:2020/5/20 11:47 | ||
15 | + */ | ||
16 | +@Service | ||
17 | +public class BasAreaServiceImpl implements BasAreaService { | ||
18 | + | ||
19 | + @Resource | ||
20 | + private BasAreaMapper basAreaMapper; | ||
21 | + | ||
22 | + @Override | ||
23 | + public BasArea getBasAreaInfo(String area) { | ||
24 | + return basAreaMapper.getBasAreaInfo(area); | ||
25 | + } | ||
26 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.service.impl; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.arrival.domain.PrepareMaster; | ||
4 | +import com.sunyo.wlpt.cgonms.arrival.mapper.PrepareMasterMapper; | ||
5 | +import com.sunyo.wlpt.cgonms.arrival.service.PrepareMasterService; | ||
6 | +import org.springframework.stereotype.Service; | ||
7 | + | ||
8 | +import javax.annotation.Resource; | ||
9 | +import java.util.List; | ||
10 | + | ||
11 | +/** | ||
12 | + * @author 子诚 | ||
13 | + * Description: | ||
14 | + * 时间:2020/5/20 11:12 | ||
15 | + */ | ||
16 | +@Service | ||
17 | +public class PrepareMasterServiceImpl implements PrepareMasterService { | ||
18 | + | ||
19 | + @Resource | ||
20 | + private PrepareMasterMapper prepareMasterMapper; | ||
21 | + | ||
22 | + @Override | ||
23 | + public List<PrepareMaster> getPrepareMasterInfo(String waybillNoMaster) { | ||
24 | + return prepareMasterMapper.getPrepareMasterInfo(waybillNoMaster); | ||
25 | + } | ||
26 | +} |
src/main/java/com/sunyo/wlpt/cgonms/arrival/service/impl/ResultArrivalDataServiceImpl.java
0 → 100644
1 | +package com.sunyo.wlpt.cgonms.arrival.service.impl; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.arrival.domain.ResultArrivalData; | ||
4 | +import org.springframework.stereotype.Service; | ||
5 | +import javax.annotation.Resource; | ||
6 | +import com.sunyo.wlpt.cgonms.arrival.mapper.ResultArrivalDataMapper; | ||
7 | +import com.sunyo.wlpt.cgonms.arrival.service.ResultArrivalDataService; | ||
8 | + | ||
9 | +import java.util.List; | ||
10 | + | ||
11 | +/** | ||
12 | + * @author 子诚 | ||
13 | + * Description: | ||
14 | + * 时间:2020/6/9 15:21 | ||
15 | + */ | ||
16 | +@Service | ||
17 | +public class ResultArrivalDataServiceImpl implements ResultArrivalDataService { | ||
18 | + | ||
19 | + @Resource | ||
20 | + private ResultArrivalDataMapper resultArrivalDataMapper; | ||
21 | + | ||
22 | + @Override | ||
23 | + public List<ResultArrivalData> getResultArrivalDataInfo(ResultArrivalData resultArrivalData) { | ||
24 | + return resultArrivalDataMapper.getResultArrivalDataInfo(resultArrivalData); | ||
25 | + } | ||
26 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.service.impl; | ||
2 | + | ||
3 | + | ||
4 | +import com.sunyo.wlpt.cgonms.arrival.domain.TbAirportCode; | ||
5 | +import com.sunyo.wlpt.cgonms.arrival.mapper.TbAirportCodeMapper; | ||
6 | +import com.sunyo.wlpt.cgonms.arrival.service.TbAirportCodeService; | ||
7 | +import org.springframework.stereotype.Service; | ||
8 | + | ||
9 | +import javax.annotation.Resource; | ||
10 | + | ||
11 | +/** | ||
12 | + * @author 子诚 | ||
13 | + * Description: | ||
14 | + * 时间:2020/5/20 11:41 | ||
15 | + */ | ||
16 | +@Service | ||
17 | +public class TbAirportCodeServiceImpl implements TbAirportCodeService { | ||
18 | + | ||
19 | + @Resource | ||
20 | + private TbAirportCodeMapper tbAirportCodeMapper; | ||
21 | + | ||
22 | + @Override | ||
23 | + public TbAirportCode getTbAirportCodeInfo(String cityId) { | ||
24 | + return tbAirportCodeMapper.getTbAirportCodeInfo(cityId); | ||
25 | + } | ||
26 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.thread; | ||
2 | + | ||
3 | +import java.util.ArrayList; | ||
4 | +import java.util.Date; | ||
5 | +import java.util.Iterator; | ||
6 | +import java.util.List; | ||
7 | +import java.util.concurrent.ThreadFactory; | ||
8 | + | ||
9 | +/** | ||
10 | + * @author 子诚 | ||
11 | + * Description:创建线程工厂 | ||
12 | + * 时间:2020/5/26 17:57 | ||
13 | + */ | ||
14 | +public class ExitThreadFactory implements ThreadFactory { | ||
15 | + | ||
16 | + private int counter; | ||
17 | + private String name; | ||
18 | + private List<String> stats; | ||
19 | + | ||
20 | + public ExitThreadFactory(String name) | ||
21 | + { | ||
22 | + counter = 1; | ||
23 | + this.name = name; | ||
24 | + stats = new ArrayList<String>(); | ||
25 | + } | ||
26 | + | ||
27 | + @Override | ||
28 | + public Thread newThread(Runnable runnable) | ||
29 | + { | ||
30 | + Thread t = new Thread(runnable, name + "-Thread_" + counter); | ||
31 | + counter++; | ||
32 | + stats.add(String.format("Created thread %d with name %s on %s \n", t.getId(), t.getName(), new Date())); | ||
33 | + return t; | ||
34 | + } | ||
35 | + | ||
36 | + public String getStats() | ||
37 | + { | ||
38 | + StringBuffer buffer = new StringBuffer(); | ||
39 | + Iterator<String> it = stats.iterator(); | ||
40 | + while (it.hasNext()) | ||
41 | + { | ||
42 | + buffer.append(it.next()); | ||
43 | + } | ||
44 | + return buffer.toString(); | ||
45 | + } | ||
46 | + | ||
47 | +} | ||
48 | + |
1 | +package com.sunyo.wlpt.cgonms.arrival.thread; | ||
2 | + | ||
3 | +import java.util.concurrent.LinkedBlockingQueue; | ||
4 | +import java.util.concurrent.ThreadPoolExecutor; | ||
5 | +import java.util.concurrent.TimeUnit; | ||
6 | + | ||
7 | +/** | ||
8 | + * @author 子诚 | ||
9 | + * Description:创建线程池 | ||
10 | + * 时间:2020/5/26 17:51 | ||
11 | + */ | ||
12 | +public class ExitThreadPoolFactory { | ||
13 | + private static ThreadPoolExecutor threadPool; | ||
14 | + | ||
15 | + public static ThreadPoolExecutor instance() { | ||
16 | + if (threadPool == null) { | ||
17 | + ExitThreadFactory exitThreadFactory = new ExitThreadFactory("exit"); | ||
18 | + threadPool = new ThreadPoolExecutor(20, 100, | ||
19 | + 0L, TimeUnit.MILLISECONDS, | ||
20 | + new LinkedBlockingQueue<Runnable>(1024), | ||
21 | + exitThreadFactory, | ||
22 | + new ThreadPoolExecutor.AbortPolicy()); | ||
23 | + } | ||
24 | + return threadPool; | ||
25 | + } | ||
26 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.utils; | ||
2 | + | ||
3 | +import com.google.gson.Gson; | ||
4 | +import com.google.gson.GsonBuilder; | ||
5 | + | ||
6 | +/** | ||
7 | + * @author 子诚 | ||
8 | + * Description: | ||
9 | + * 时间:2020/6/5 10:19 | ||
10 | + */ | ||
11 | +public class GsonUtils { | ||
12 | + | ||
13 | + private static Gson gson = null; | ||
14 | + | ||
15 | + /** | ||
16 | + * 判断gson对象是否存在了,不存在则创建对象 | ||
17 | + */ | ||
18 | + static { | ||
19 | + if (gson == null) { | ||
20 | + //gson = new Gson(); | ||
21 | + //当使用GsonBuilder方式时属性为空的时候输出来的json字符串是有键值key的,显示形式是"key":null,而直接new出来的就没有"key":null的 | ||
22 | + gson = new GsonBuilder().setDateFormat("yyyy-MM-dd HH:mm:ss").create(); | ||
23 | + } | ||
24 | + } | ||
25 | + | ||
26 | + /** | ||
27 | + * 无参的私有构造方法 | ||
28 | + */ | ||
29 | + private GsonUtils() { | ||
30 | + } | ||
31 | + | ||
32 | + /** | ||
33 | + * 封装一个 gson 将对象转换成json字符串的方法。 | ||
34 | + */ | ||
35 | + public static String toJsonStr(Object object) { | ||
36 | + String gsonString = null; | ||
37 | + if (gson != null) { | ||
38 | + gsonString = gson.toJson(object); | ||
39 | + } | ||
40 | + return gsonString; | ||
41 | + } | ||
42 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.websocket; | ||
2 | + | ||
3 | +import org.springframework.beans.BeansException; | ||
4 | +import org.springframework.beans.factory.BeanFactory; | ||
5 | +import org.springframework.context.ApplicationContext; | ||
6 | +import org.springframework.context.ApplicationContextAware; | ||
7 | + | ||
8 | +import javax.websocket.server.ServerEndpointConfig; | ||
9 | + | ||
10 | +/** | ||
11 | + * | ||
12 | + * @author XYH | ||
13 | + * @date 2019/12/24 | ||
14 | + */ | ||
15 | +public class MySpringConfigurator extends ServerEndpointConfig.Configurator implements ApplicationContextAware { | ||
16 | + private static volatile BeanFactory context; | ||
17 | + | ||
18 | + @Override | ||
19 | + public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { | ||
20 | + MySpringConfigurator.context = applicationContext; | ||
21 | + } | ||
22 | + | ||
23 | + @Override | ||
24 | + public <T> T getEndpointInstance(Class<T> clazz) throws InstantiationException { | ||
25 | + return context.getBean(clazz); | ||
26 | + } | ||
27 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.websocket; | ||
2 | + | ||
3 | +import org.springframework.context.annotation.Bean; | ||
4 | +import org.springframework.context.annotation.Configuration; | ||
5 | +import org.springframework.web.socket.server.standard.ServerEndpointExporter; | ||
6 | + | ||
7 | +/** | ||
8 | + * | ||
9 | + * @author XYH | ||
10 | + * @date 2019/12/23 | ||
11 | + */ | ||
12 | +@Configuration | ||
13 | +public class WebSocketConfig { | ||
14 | + @Bean | ||
15 | + public ServerEndpointExporter serverEndpointExporter() { | ||
16 | + return new ServerEndpointExporter(); | ||
17 | + } | ||
18 | + @Bean | ||
19 | + public MySpringConfigurator mySpringConfigurator() { | ||
20 | + return new MySpringConfigurator(); | ||
21 | + } | ||
22 | +} |
1 | +package com.sunyo.wlpt.cgonms.arrival.websocket; | ||
2 | + | ||
3 | + | ||
4 | +import cn.hutool.log.Log; | ||
5 | +import cn.hutool.log.LogFactory; | ||
6 | +import com.sunyo.wlpt.cgonms.arrival.response.ResultWs; | ||
7 | +import com.sunyo.wlpt.cgonms.arrival.utils.GsonUtils; | ||
8 | +import org.springframework.stereotype.Component; | ||
9 | + | ||
10 | +import javax.annotation.Resource; | ||
11 | +import javax.websocket.*; | ||
12 | +import javax.websocket.server.PathParam; | ||
13 | +import javax.websocket.server.ServerEndpoint; | ||
14 | +import java.io.IOException; | ||
15 | +import java.util.concurrent.CopyOnWriteArraySet; | ||
16 | + | ||
17 | +/** | ||
18 | + * Created by XYH on 2019/12/23. | ||
19 | + */ | ||
20 | +@ServerEndpoint(value = "/websocket/{sid}", configurator = MySpringConfigurator.class) | ||
21 | +@Component | ||
22 | +public class WebSocketServer { | ||
23 | + | ||
24 | + | ||
25 | + static Log log = LogFactory.get(WebSocketServer.class); | ||
26 | + | ||
27 | + /** | ||
28 | + * 静态变量,用来记录当前在线连接数。应该把它设计成线程安全的。 | ||
29 | + */ | ||
30 | + private static int onlineCount = 0; | ||
31 | + | ||
32 | + //concurrent包的线程安全Set,用来存放每个客户端对应的MyWebSocket对象。 | ||
33 | + private static CopyOnWriteArraySet<WebSocketServer> webSocketSet = new CopyOnWriteArraySet<WebSocketServer>(); | ||
34 | + | ||
35 | + /** | ||
36 | + * 与某个客户端的连接会话,需要通过它来给客户端发送数据 | ||
37 | + */ | ||
38 | + private Session session; | ||
39 | + | ||
40 | + //接收sid | ||
41 | + private String sid = ""; | ||
42 | + | ||
43 | + /** | ||
44 | + * 连接建立成功调用的方法 | ||
45 | + */ | ||
46 | + @OnOpen | ||
47 | + public void onOpen(Session session, @PathParam("sid") String sid) { | ||
48 | + this.session = session; | ||
49 | + //加入set中 | ||
50 | + webSocketSet.add(this); | ||
51 | + //在线数加1 | ||
52 | + addOnlineCount(); | ||
53 | + log.info("有新窗口开始监听:" + sid + ",当前在线人数为" + getOnlineCount()); | ||
54 | + this.sid = sid; | ||
55 | + try { | ||
56 | + String resultStart = GsonUtils.toJsonStr(new ResultWs("连接成功,可以开始查询!")); | ||
57 | + sendMessage(resultStart); | ||
58 | + } catch (IOException e) { | ||
59 | + log.error("websocket IO异常"); | ||
60 | + } | ||
61 | + } | ||
62 | + | ||
63 | + /** | ||
64 | + * 连接关闭调用的方法 | ||
65 | + */ | ||
66 | + @OnClose | ||
67 | + public void onClose() { | ||
68 | + //从set中删除 | ||
69 | + webSocketSet.remove(this); | ||
70 | + //在线数减1 | ||
71 | + subOnlineCount(); | ||
72 | + log.info("有一连接关闭!当前在线人数为" + getOnlineCount()); | ||
73 | + } | ||
74 | + | ||
75 | + /** | ||
76 | + * 收到客户端消息后调用的方法 | ||
77 | + * | ||
78 | + * @param message 客户端发送过来的消息,以json形式传递接收 | ||
79 | + */ | ||
80 | + @OnMessage | ||
81 | + public void onMessage(String message, Session session) { | ||
82 | + log.info("收到来自窗口" + sid + "的信息:" + message); | ||
83 | + //群发消息 | ||
84 | + for (WebSocketServer item : webSocketSet) { | ||
85 | + try { | ||
86 | + item.sendMessage(message); | ||
87 | + } catch (IOException e) { | ||
88 | + e.printStackTrace(); | ||
89 | + } | ||
90 | + } | ||
91 | + } | ||
92 | + | ||
93 | + /** | ||
94 | + * @param session | ||
95 | + * @param error | ||
96 | + */ | ||
97 | + @OnError | ||
98 | + public void onError(Session session, Throwable error) { | ||
99 | + log.error("发生错误"); | ||
100 | + error.printStackTrace(); | ||
101 | + } | ||
102 | + | ||
103 | + /** | ||
104 | + * 实现服务器主动推送 | ||
105 | + */ | ||
106 | + public void sendMessage(String message) throws IOException { | ||
107 | + this.session.getBasicRemote().sendText(message); | ||
108 | + } | ||
109 | + | ||
110 | + | ||
111 | + /** | ||
112 | + * 群发自定义消息 | ||
113 | + */ | ||
114 | + public static void sendInfo(String message, @PathParam("sid") String sid) throws IOException { | ||
115 | + for (WebSocketServer item : webSocketSet) { | ||
116 | + try { | ||
117 | + //这里可以设定只推送给这个sid的,为null则全部推送 | ||
118 | + if (sid == null) { | ||
119 | + item.sendMessage(message); | ||
120 | + } else if (item.sid.equals(sid)) { | ||
121 | + item.sendMessage(message); | ||
122 | + } | ||
123 | + } catch (IOException e) { | ||
124 | + continue; | ||
125 | + } | ||
126 | + } | ||
127 | + } | ||
128 | + | ||
129 | + public static synchronized int getOnlineCount() { | ||
130 | + return onlineCount; | ||
131 | + } | ||
132 | + | ||
133 | + public static synchronized void addOnlineCount() { | ||
134 | + WebSocketServer.onlineCount++; | ||
135 | + } | ||
136 | + | ||
137 | + public static synchronized void subOnlineCount() { | ||
138 | + WebSocketServer.onlineCount--; | ||
139 | + } | ||
140 | +} | ||
141 | + |
1 | - |
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
3 | +<mapper namespace="com.sunyo.wlpt.cgonms.arrival.mapper.BasAirportMapper"> | ||
4 | + <resultMap id="BaseResultMap" type="com.sunyo.wlpt.cgonms.arrival.domain.BasAirport"> | ||
5 | + <!--@mbg.generated--> | ||
6 | + <!--@Table T_BAS_AIRPORT--> | ||
7 | + <result column="AIRPORTID" jdbcType="VARCHAR" property="airportId"/> | ||
8 | + <result column="CITYID" jdbcType="VARCHAR" property="cityId"/> | ||
9 | + </resultMap> | ||
10 | + <sql id="Base_Column_List"> | ||
11 | + <!--@mbg.generated--> | ||
12 | + AIRPORTID, CITYID | ||
13 | +<!-- ,AIRPORT4CODE, AIRPORTDESCCHN, AIRPORTDESCENG, OPERATIONTIME--> | ||
14 | + </sql> | ||
15 | + <select id="getBasAirportInfo" parameterType="java.lang.String" resultMap="BaseResultMap"> | ||
16 | + select | ||
17 | + <include refid="Base_Column_List"/> | ||
18 | + from T_BAS_AIRPORT | ||
19 | + where | ||
20 | + AIRPORTID = #{destinationStation,jdbcType=VARCHAR} | ||
21 | + </select> | ||
22 | +</mapper> |
src/main/resources/mapper/BasAreaMapper.xml
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
3 | +<mapper namespace="com.sunyo.wlpt.cgonms.arrival.mapper.BasAreaMapper"> | ||
4 | + <resultMap id="BaseResultMap" type="com.sunyo.wlpt.cgonms.arrival.domain.BasArea"> | ||
5 | + <!--@mbg.generated--> | ||
6 | + <!--@Table T_BAS_AREA--> | ||
7 | + <result column="AREAID" jdbcType="VARCHAR" property="areaId"/> | ||
8 | + <result column="NETID" jdbcType="VARCHAR" property="netId"/> | ||
9 | + <result column="AREADESCCHN" jdbcType="VARCHAR" property="areaDescChn"/> | ||
10 | + </resultMap> | ||
11 | + <sql id="Base_Column_List"> | ||
12 | + <!--@mbg.generated--> | ||
13 | + AREAID, NETID, AREADESCCHN | ||
14 | +<!-- , AREADESCENG, OPERATIONTIME--> | ||
15 | + </sql> | ||
16 | + <select id="getBasAreaInfo" parameterType="java.lang.String" resultMap="BaseResultMap"> | ||
17 | + select | ||
18 | + <include refid="Base_Column_List"/> | ||
19 | + from T_BAS_AREA | ||
20 | + where AREAID = #{area,jdbcType=VARCHAR} | ||
21 | + </select> | ||
22 | +</mapper> |
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
3 | +<mapper namespace="com.sunyo.wlpt.cgonms.arrival.mapper.PrepareMasterMapper"> | ||
4 | + <resultMap id="BaseResultMap" type="com.sunyo.wlpt.cgonms.arrival.domain.PrepareMaster"> | ||
5 | + <!--@mbg.generated--> | ||
6 | + <!--@Table PREPAREMASTER--> | ||
7 | + <result column="CONSIGNEENAME" jdbcType="VARCHAR" property="consigneeName"/> | ||
8 | + <result column="SHIPPERNAME" jdbcType="VARCHAR" property="shipperName"/> | ||
9 | + <result column="DESTINATIONSTATION" jdbcType="VARCHAR" property="destinationStation"/> | ||
10 | + <result column="WAYBILLNOMASTER" jdbcType="VARCHAR" property="waybillNoMaster"/> | ||
11 | + </resultMap> | ||
12 | + <sql id="Base_Column_List"> | ||
13 | + <!--@mbg.generated--> | ||
14 | + CONSIGNEENAME,SHIPPERNAME,DESTINATIONSTATION,WAYBILLNOMASTER | ||
15 | + </sql> | ||
16 | + <select id="getPrepareMasterInfo" parameterType="java.lang.String" resultMap="BaseResultMap"> | ||
17 | + select | ||
18 | + <include refid="Base_Column_List"/> | ||
19 | + from PREPAREMASTER | ||
20 | + where | ||
21 | + WAYBILLNOMASTER = #{waybillNoMaster,jdbcType=VARCHAR} | ||
22 | + </select> | ||
23 | +</mapper> |
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
3 | +<mapper namespace="com.sunyo.wlpt.cgonms.arrival.mapper.ResultArrivalDataMapper"> | ||
4 | + <resultMap id="BaseResultMap" type="com.sunyo.wlpt.cgonms.arrival.domain.ResultArrivalData"> | ||
5 | + <!--@mbg.generated--> | ||
6 | + <!--@Table ARRIVEDMASTER--> | ||
7 | + <result column="AUTOID" jdbcType="VARCHAR" property="autoId"/> | ||
8 | + <result column="WAYBILLNOMASTER" jdbcType="VARCHAR" property="waybillNoMaster"/> | ||
9 | + <result column="FLIGHTNO" jdbcType="VARCHAR" property="flightNo"/> | ||
10 | + <result column="FLIGHTDATE" jdbcType="TIMESTAMP" property="flightDate"/> | ||
11 | + <result column="ORIGINATINGSTATION" jdbcType="VARCHAR" property="originatingStation"/> | ||
12 | + <result column="DESTINATIONSTATION" jdbcType="VARCHAR" property="destinationStation"/> | ||
13 | + <result column="TOTALPIECEQUANTITY" jdbcType="VARCHAR" property="totalPiece"/> | ||
14 | + <result column="ARRIVEDTOTALWEIGHT" jdbcType="VARCHAR" property="totalWeight"/> | ||
15 | + </resultMap> | ||
16 | + <sql id="Base_Column_List"> | ||
17 | + <!--@mbg.generated--> | ||
18 | + AUTOID, WAYBILLNOMASTER, FLIGHTNO, FLIGHTDATE, ORIGINATINGSTATION, DESTINATIONSTATION, | ||
19 | + TOTALPIECEQUANTITY, ARRIVEDTOTALWEIGHT | ||
20 | + </sql> | ||
21 | + <select id="getResultArrivalDataInfo" parameterType="com.sunyo.wlpt.cgonms.arrival.domain.ResultArrivalData" | ||
22 | + resultMap="BaseResultMap"> | ||
23 | + select | ||
24 | + <include refid="Base_Column_List"/> | ||
25 | + from ARRIVEDMASTER | ||
26 | + where 1=1 | ||
27 | + <!-- 航班号 --> | ||
28 | + <if test="flightNo!=null and flightNo!=''"> | ||
29 | + AND FLIGHTNO= #{flightNo,jdbcType=VARCHAR} | ||
30 | + </if> | ||
31 | + <!-- 航班日期 --> | ||
32 | + <if test="flightDate!=null"> | ||
33 | + AND FLIGHTDATE = #{flightDate,jdbcType=DATE} | ||
34 | + </if> | ||
35 | + </select> | ||
36 | +</mapper> |
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
3 | +<mapper namespace="com.sunyo.wlpt.cgonms.arrival.mapper.TbAirportCodeMapper"> | ||
4 | + <resultMap id="BaseResultMap" type="com.sunyo.wlpt.cgonms.arrival.domain.TbAirportCode"> | ||
5 | + <!--@mbg.generated--> | ||
6 | + <!--@Table TB_AIRPORTCODE--> | ||
7 | + <result column="CITYCODE" jdbcType="VARCHAR" property="cityCode"/> | ||
8 | + <result column="AREA" jdbcType="VARCHAR" property="area"/> | ||
9 | + <result column="COUNTRY" jdbcType="VARCHAR" property="country"/> | ||
10 | + </resultMap> | ||
11 | + <sql id="Base_Column_List"> | ||
12 | + <!--@mbg.generated--> | ||
13 | + CITYCODE, AREA, COUNTRY | ||
14 | + </sql> | ||
15 | + <select id="getTbAirportCodeInfo" parameterType="java.lang.String" resultMap="BaseResultMap"> | ||
16 | + select | ||
17 | + <include refid="Base_Column_List"/> | ||
18 | + from TB_AIRPORTCODE | ||
19 | + where CITYCODE = #{cityId,jdbcType=VARCHAR} | ||
20 | + </select> | ||
21 | +</mapper> |
-
请 注册 或 登录 后发表评论