From 985b8bc06421276d840afbe169a9723eaf3868b4 Mon Sep 17 00:00:00 2001 From: feewee Date: Tue, 27 Dec 2022 11:10:26 +0800 Subject: [PATCH] f --- logs/info.log | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/main/java/com/sucl/sbmp/sys/biz/ChanganAutoEpcPartsBiz.java | 2 +- src/test/java/cn/fw/parts/AcquirePartsTest.java | 2 +- 3 files changed, 82 insertions(+), 2 deletions(-) diff --git a/logs/info.log b/logs/info.log index 6d2caee..c3633ab 100644 --- a/logs/info.log +++ b/logs/info.log @@ -8865,3 +8865,83 @@ 2022-12-26 19:33:54.005 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2022-12-26 19:33:54.339 [main] INFO cn.fw.parts.AcquirePartsTest - Started AcquirePartsTest in 3.038 seconds (JVM running for 4.135) 2022-12-26 19:42:35.399 [Thread-3] INFO o.s.w.context.support.GenericWebApplicationContext - Closing org.springframework.web.context.support.GenericWebApplicationContext@abf688e: startup date [Mon Dec 26 19:33:51 CST 2022]; root of context hierarchy +2022-12-26 19:52:57.314 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [cn.fw.parts.AcquirePartsTest], using SpringBootContextLoader +2022-12-26 19:52:57.320 [main] INFO o.s.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [cn.fw.parts.AcquirePartsTest]: no resource found for suffixes {-context.xml, Context.groovy}. +2022-12-26 19:52:57.396 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener] +2022-12-26 19:52:57.415 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@60099951, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@20140db9, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@1e6a3214, org.springframework.test.context.support.DirtiesContextTestExecutionListener@368247b9, org.springframework.test.context.transaction.TransactionalTestExecutionListener@1a6d8329, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@1a942c18, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@55a147cc, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@71ba6d4e, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@738dc9b, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@3c77d488, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@63376bed, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@4145bad8] +2022-12-26 19:52:57.875 [main] INFO cn.fw.parts.AcquirePartsTest - Starting AcquirePartsTest on DESKTOP-4PEO28G with PID 17740 (started by zk in C:\Users\zk\Desktop\sbmp) +2022-12-26 19:52:57.876 [main] INFO cn.fw.parts.AcquirePartsTest - No active profile set, falling back to default profiles: default +2022-12-26 19:52:57.925 [main] INFO o.s.w.context.support.GenericWebApplicationContext - Refreshing org.springframework.web.context.support.GenericWebApplicationContext@abf688e: startup date [Mon Dec 26 19:52:57 CST 2022]; root of context hierarchy +2022-12-26 19:52:58.145 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.6.Final +2022-12-26 19:53:00.141 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: org.springframework.web.context.support.GenericWebApplicationContext@abf688e: startup date [Mon Dec 26 19:52:57 CST 2022]; root of context hierarchy +2022-12-26 19:53:00.201 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest) +2022-12-26 19:53:00.202 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) +2022-12-26 19:53:00.231 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] +2022-12-26 19:53:00.231 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] +2022-12-26 19:53:00.275 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] +2022-12-26 19:53:00.612 [main] INFO cn.fw.parts.AcquirePartsTest - Started AcquirePartsTest in 3.088 seconds (JVM running for 3.862) +2022-12-26 19:53:12.813 [Thread-3] INFO o.s.w.context.support.GenericWebApplicationContext - Closing org.springframework.web.context.support.GenericWebApplicationContext@abf688e: startup date [Mon Dec 26 19:52:57 CST 2022]; root of context hierarchy +2022-12-26 19:55:52.728 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [cn.fw.parts.AcquirePartsTest], using SpringBootContextLoader +2022-12-26 19:55:52.734 [main] INFO o.s.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [cn.fw.parts.AcquirePartsTest]: no resource found for suffixes {-context.xml, Context.groovy}. +2022-12-26 19:55:52.805 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener] +2022-12-26 19:55:52.824 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@60099951, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@20140db9, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@1e6a3214, org.springframework.test.context.support.DirtiesContextTestExecutionListener@368247b9, org.springframework.test.context.transaction.TransactionalTestExecutionListener@1a6d8329, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@1a942c18, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@55a147cc, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@71ba6d4e, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@738dc9b, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@3c77d488, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@63376bed, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@4145bad8] +2022-12-26 19:55:53.267 [main] INFO cn.fw.parts.AcquirePartsTest - Starting AcquirePartsTest on DESKTOP-4PEO28G with PID 21232 (started by zk in C:\Users\zk\Desktop\sbmp) +2022-12-26 19:55:53.268 [main] INFO cn.fw.parts.AcquirePartsTest - No active profile set, falling back to default profiles: default +2022-12-26 19:55:53.308 [main] INFO o.s.w.context.support.GenericWebApplicationContext - Refreshing org.springframework.web.context.support.GenericWebApplicationContext@abf688e: startup date [Mon Dec 26 19:55:53 CST 2022]; root of context hierarchy +2022-12-26 19:55:53.543 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.6.Final +2022-12-26 19:55:55.574 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: org.springframework.web.context.support.GenericWebApplicationContext@abf688e: startup date [Mon Dec 26 19:55:53 CST 2022]; root of context hierarchy +2022-12-26 19:55:55.638 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest) +2022-12-26 19:55:55.639 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) +2022-12-26 19:55:55.667 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] +2022-12-26 19:55:55.667 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] +2022-12-26 19:55:55.707 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] +2022-12-26 19:55:56.057 [main] INFO cn.fw.parts.AcquirePartsTest - Started AcquirePartsTest in 3.126 seconds (JVM running for 4.017) +2022-12-26 19:56:07.060 [Thread-3] INFO o.s.w.context.support.GenericWebApplicationContext - Closing org.springframework.web.context.support.GenericWebApplicationContext@abf688e: startup date [Mon Dec 26 19:55:53 CST 2022]; root of context hierarchy +2022-12-26 20:05:27.186 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [cn.fw.parts.AcquirePartsTest], using SpringBootContextLoader +2022-12-26 20:05:27.195 [main] INFO o.s.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [cn.fw.parts.AcquirePartsTest]: no resource found for suffixes {-context.xml, Context.groovy}. +2022-12-26 20:05:27.287 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener] +2022-12-26 20:05:27.310 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@60099951, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@20140db9, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@1e6a3214, org.springframework.test.context.support.DirtiesContextTestExecutionListener@368247b9, org.springframework.test.context.transaction.TransactionalTestExecutionListener@1a6d8329, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@1a942c18, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@55a147cc, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@71ba6d4e, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@738dc9b, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@3c77d488, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@63376bed, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@4145bad8] +2022-12-26 20:05:27.763 [main] INFO cn.fw.parts.AcquirePartsTest - Starting AcquirePartsTest on DESKTOP-4PEO28G with PID 18544 (started by zk in C:\Users\zk\Desktop\sbmp) +2022-12-26 20:05:27.763 [main] INFO cn.fw.parts.AcquirePartsTest - No active profile set, falling back to default profiles: default +2022-12-26 20:05:27.802 [main] INFO o.s.w.context.support.GenericWebApplicationContext - Refreshing org.springframework.web.context.support.GenericWebApplicationContext@abf688e: startup date [Mon Dec 26 20:05:27 CST 2022]; root of context hierarchy +2022-12-26 20:05:28.055 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.6.Final +2022-12-26 20:05:29.997 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: org.springframework.web.context.support.GenericWebApplicationContext@abf688e: startup date [Mon Dec 26 20:05:27 CST 2022]; root of context hierarchy +2022-12-26 20:05:30.060 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest) +2022-12-26 20:05:30.061 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) +2022-12-26 20:05:30.099 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] +2022-12-26 20:05:30.099 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] +2022-12-26 20:05:30.137 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] +2022-12-26 20:05:30.475 [main] INFO cn.fw.parts.AcquirePartsTest - Started AcquirePartsTest in 3.046 seconds (JVM running for 4.099) +2022-12-26 20:27:16.805 [Thread-3] INFO o.s.w.context.support.GenericWebApplicationContext - Closing org.springframework.web.context.support.GenericWebApplicationContext@abf688e: startup date [Mon Dec 26 20:05:27 CST 2022]; root of context hierarchy +2022-12-27 11:01:36.586 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [cn.fw.parts.AcquirePartsTest], using SpringBootContextLoader +2022-12-27 11:01:36.599 [main] INFO o.s.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [cn.fw.parts.AcquirePartsTest]: no resource found for suffixes {-context.xml, Context.groovy}. +2022-12-27 11:01:36.752 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener] +2022-12-27 11:01:36.816 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@60099951, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@20140db9, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@1e6a3214, org.springframework.test.context.support.DirtiesContextTestExecutionListener@368247b9, org.springframework.test.context.transaction.TransactionalTestExecutionListener@1a6d8329, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@1a942c18, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@55a147cc, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@71ba6d4e, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@738dc9b, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@3c77d488, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@63376bed, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@4145bad8] +2022-12-27 11:01:37.705 [main] INFO cn.fw.parts.AcquirePartsTest - Starting AcquirePartsTest on DESKTOP-4PEO28G with PID 17548 (started by zk in C:\Users\zk\Desktop\sbmp) +2022-12-27 11:01:37.706 [main] INFO cn.fw.parts.AcquirePartsTest - No active profile set, falling back to default profiles: default +2022-12-27 11:01:37.760 [main] INFO o.s.w.context.support.GenericWebApplicationContext - Refreshing org.springframework.web.context.support.GenericWebApplicationContext@abf688e: startup date [Tue Dec 27 11:01:37 CST 2022]; root of context hierarchy +2022-12-27 11:01:38.245 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.6.Final +2022-12-27 11:01:42.575 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: org.springframework.web.context.support.GenericWebApplicationContext@abf688e: startup date [Tue Dec 27 11:01:37 CST 2022]; root of context hierarchy +2022-12-27 11:01:42.656 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest) +2022-12-27 11:01:42.658 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) +2022-12-27 11:01:42.701 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] +2022-12-27 11:01:42.702 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] +2022-12-27 11:01:42.762 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] +2022-12-27 11:01:43.360 [main] INFO cn.fw.parts.AcquirePartsTest - Started AcquirePartsTest in 6.294 seconds (JVM running for 8.211) +2022-12-27 11:01:55.587 [Thread-3] INFO o.s.w.context.support.GenericWebApplicationContext - Closing org.springframework.web.context.support.GenericWebApplicationContext@abf688e: startup date [Tue Dec 27 11:01:37 CST 2022]; root of context hierarchy +2022-12-27 11:05:09.830 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [cn.fw.parts.AcquirePartsTest], using SpringBootContextLoader +2022-12-27 11:05:09.847 [main] INFO o.s.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [cn.fw.parts.AcquirePartsTest]: no resource found for suffixes {-context.xml, Context.groovy}. +2022-12-27 11:05:10.075 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener] +2022-12-27 11:05:10.132 [main] INFO o.s.b.t.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@60099951, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@20140db9, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@1e6a3214, org.springframework.test.context.support.DirtiesContextTestExecutionListener@368247b9, org.springframework.test.context.transaction.TransactionalTestExecutionListener@1a6d8329, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@1a942c18, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@55a147cc, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@71ba6d4e, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@738dc9b, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@3c77d488, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@63376bed, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@4145bad8] +2022-12-27 11:05:11.242 [main] INFO cn.fw.parts.AcquirePartsTest - Starting AcquirePartsTest on DESKTOP-4PEO28G with PID 24396 (started by zk in C:\Users\zk\Desktop\sbmp) +2022-12-27 11:05:11.243 [main] INFO cn.fw.parts.AcquirePartsTest - No active profile set, falling back to default profiles: default +2022-12-27 11:05:11.343 [main] INFO o.s.w.context.support.GenericWebApplicationContext - Refreshing org.springframework.web.context.support.GenericWebApplicationContext@abf688e: startup date [Tue Dec 27 11:05:11 CST 2022]; root of context hierarchy +2022-12-27 11:05:11.885 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.6.Final +2022-12-27 11:05:16.664 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: org.springframework.web.context.support.GenericWebApplicationContext@abf688e: startup date [Tue Dec 27 11:05:11 CST 2022]; root of context hierarchy +2022-12-27 11:05:16.744 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest) +2022-12-27 11:05:16.745 [main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) +2022-12-27 11:05:16.777 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] +2022-12-27 11:05:16.777 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] +2022-12-27 11:05:16.829 [main] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] +2022-12-27 11:05:17.279 [main] INFO cn.fw.parts.AcquirePartsTest - Started AcquirePartsTest in 6.853 seconds (JVM running for 8.705) +2022-12-27 11:05:28.733 [Thread-3] INFO o.s.w.context.support.GenericWebApplicationContext - Closing org.springframework.web.context.support.GenericWebApplicationContext@abf688e: startup date [Tue Dec 27 11:05:11 CST 2022]; root of context hierarchy diff --git a/src/main/java/com/sucl/sbmp/sys/biz/ChanganAutoEpcPartsBiz.java b/src/main/java/com/sucl/sbmp/sys/biz/ChanganAutoEpcPartsBiz.java index 25cbcb3..451053d 100644 --- a/src/main/java/com/sucl/sbmp/sys/biz/ChanganAutoEpcPartsBiz.java +++ b/src/main/java/com/sucl/sbmp/sys/biz/ChanganAutoEpcPartsBiz.java @@ -222,7 +222,7 @@ public class ChanganAutoEpcPartsBiz { requestHeader.put("Referer","http://epc.changan.com.cn:8080/frontCilentNew/carInfo.html?seriesId=JC2019092436648850&brandId=80aed4fce2eb4f2d8b0740fe3fdcdfa9"); requestHeader.put("Accept-Encoding","gzip,deflate"); requestHeader.put("Cookie","JSESSIONID=19674kmm8ndmx4j1qvi161h17"); - requestHeader.put("User-Agent","Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) EPC/1.0.0 Chrome/83.0.4103.64 Electron/9.0.0 Safari/537.36"); + requestHeader.put("User-Agent","Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) electron-quick-start/2.0.0 Chrome/83.0.4103.64 Electron/9.0.0 Safari/537.36"); requestHeader.put("Authorization", token); requestHeader.put("Connection", "keep-alive"); requestHeader.put("Accept-Language", "zh-CN"); diff --git a/src/test/java/cn/fw/parts/AcquirePartsTest.java b/src/test/java/cn/fw/parts/AcquirePartsTest.java index 952e2e7..951e2eb 100644 --- a/src/test/java/cn/fw/parts/AcquirePartsTest.java +++ b/src/test/java/cn/fw/parts/AcquirePartsTest.java @@ -34,7 +34,7 @@ public class AcquirePartsTest { @Before public void setToken(){ // this.token = this.changanAutoEpcPartsBiz.setToken("381ec1fa12a84dce81e1d05db15bcc34"); - this.token = this.changanAutoEpcPartsBiz.setToken("8daffcf5151f4d9ba7884fd63684f193"); + this.token = this.changanAutoEpcPartsBiz.setToken("93691923a9bb4d5eb8b0abe13c8d50db"); } /** * 新版EPC数据抽取 -- libgit2 0.22.2