spring boot 整合swagger项目放到tomcat的webapps目录下启动的时候报空指针警告有谁知道原因么
01-Mar-2019 17:14:11.104 信息 [localhost-startStop-2] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.0.0.RELEASE)
2019-03-01 17:14:12.638 INFO 5924 --- [ost-startStop-2] o.d.DaacApplication : Starting DaacApplication v1.0 on LAPTOP-KE1PBAT8 with PID 5924 (E:\tomcat\apache-tomcat-8.5.34\webapps\devicemgmtservice\WEB-INF\classes started by 93999 in E:\tomcat\apache-tomcat-8.5.34\bin)
2019-03-01 17:14:12.652 INFO 5924 --- [ost-startStop-2] o.d.DaacApplication : No active profile set, falling back to default profiles: default
2019-03-01 17:14:12.713 INFO 5924 --- [ost-startStop-2] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@7f03a74a: startup date [Fri Mar 01 17:14:12 CST 2019]; root of context hierarchy
2019-03-01 17:14:14.779 INFO 5924 --- [ost-startStop-2] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2019-03-01 17:14:14.959 INFO 5924 --- [ost-startStop-2] o.s.w.c.ContextLoader : Root WebApplicationContext: initialization completed in 2246 ms
2019-03-01 17:14:15.342 INFO 5924 --- [ost-startStop-2] o.s.b.w.s.ServletRegistrationBean : Servlet dispatcherServlet mapped to [/]
2019-03-01 17:14:15.344 INFO 5924 --- [ost-startStop-2] o.s.b.w.s.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
2019-03-01 17:14:15.345 INFO 5924 --- [ost-startStop-2] o.s.b.w.s.FilterRegistrationBean : Mapping filter: 'errorPageFilter' to: [/*]
2019-03-01 17:14:15.345 INFO 5924 --- [ost-startStop-2] o.s.b.w.s.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2019-03-01 17:14:15.345 INFO 5924 --- [ost-startStop-2] o.s.b.w.s.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2019-03-01 17:14:15.345 INFO 5924 --- [ost-startStop-2] o.s.b.w.s.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
2019-03-01 17:14:15.345 INFO 5924 --- [ost-startStop-2] o.s.b.w.s.FilterRegistrationBean : Mapping filter: 'crosLoginFilter' to: [/*]
2019-03-01 17:14:16.401 INFO 5924 --- [ost-startStop-2] o.m.d.cluster : Cluster created with settings {hosts=[localhost:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
2019-03-01 17:14:16.551 INFO 5924 --- [localhost:27017] o.m.d.connection : Opened connection [connectionId{localValue:1, serverValue:9}] to localhost:27017
2019-03-01 17:14:16.560 INFO 5924 --- [localhost:27017] o.m.d.cluster : Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 6, 9]}, minWireVersion=0, maxWireVersion=6, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=5620687}
2019-03-01 17:14:17.765 INFO 5924 --- [ost-startStop-2] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/device/notify/{deviceId}/{swVersion}],methods=[GET]}" onto public org.daac.version.pojo.response.NotifyResponse org.daac.version.controller.DeviceController.notify(java.lang.String,java.lang.String)
2019-03-01 17:14:17.785 INFO 5924 --- [ost-startStop-2] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/devices/{pageIndex}/{pageSize}],methods=[GET]}" onto public org.daac.version.pojo.response.DeviceResponse org.daac.version.controller.DeviceController.getDevices(java.lang.String,java.lang.String)
2019-03-01 17:14:17.785 INFO 5924 --- [ost-startStop-2] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/device/update/{deviceId}],methods=[POST]}" onto public void org.daac.version.controller.DeviceController.opUpdate(java.lang.String,org.daac.version.pojo.request.UpdateRequest)
2019-03-01 17:14:17.786 INFO 5924 --- [ost-startStop-2] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/device/target],methods=[POST]}" onto public void org.daac.version.controller.DeviceController.opUpdate(org.daac.version.pojo.request.TarGetRequest)
2019-03-01 17:14:17.787 INFO 5924 --- [ost-startStop-2] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/devices/id/{pageIndex}/{pageSize}],methods=[GET]}" onto public org.daac.version.pojo.response.DevicesResponse org.daac.version.controller.DeviceController.findId(java.lang.String,java.lang.String)
2019-03-01 17:14:17.788 INFO 5924 --- [ost-startStop-2] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/device/target],methods=[GET]}" onto public org.daac.version.pojo.response.TarGetResponse org.daac.version.controller.DeviceController.getUpdate()
2019-03-01 17:14:17.789 INFO 5924 --- [ost-startStop-2] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/device/reset/{deviceId}],methods=[POST]}" onto public void org.daac.version.controller.DeviceController.opReset(java.lang.String)
2019-03-01 17:14:17.789 INFO 5924 --- [ost-startStop-2] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/device/cfgUpdate/{deviceId}],methods=[GET]}" onto public org.daac.version.pojo.response.CfgUpdateResponse org.daac.version.controller.DeviceController.cfgUpdate(java.lang.String)
2019-03-01 17:14:17.790 INFO 5924 --- [ost-startStop-2] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/device/heartBeat],methods=[POST]}" onto public void org.daac.version.controller.DeviceController.heartBeat(org.daac.version.pojo.request.FeedBackRequest)
2019-03-01 17:14:17.799 INFO 5924 --- [ost-startStop-2] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/swagger-resources/configuration/ui]}" onto public org.springframework.http.ResponseEntity<springfox.documentation.swagger.web.UiConfiguration> springfox.documentation.swagger.web.ApiResourceController.uiConfiguration()
2019-03-01 17:14:17.802 INFO 5924 --- [ost-startStop-2] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/swagger-resources]}" onto public org.springframework.http.ResponseEntity<java.util.List<springfox.documentation.swagger.web.SwaggerResource>> springfox.documentation.swagger.web.ApiResourceController.swaggerResources()
2019-03-01 17:14:17.807 INFO 5924 --- [ost-startStop-2] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/swagger-resources/configuration/security]}" onto public org.springframework.http.ResponseEntity<springfox.documentation.swagger.web.SecurityConfiguration> springfox.documentation.swagger.web.ApiResourceController.securityConfiguration()
2019-03-01 17:14:17.816 INFO 5924 --- [ost-startStop-2] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2019-03-01 17:14:17.820 INFO 5924 --- [ost-startStop-2] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2019-03-01 17:14:18.136 INFO 5924 --- [ost-startStop-2] pertySourcedRequestMappingHandlerMapping : Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity<springfox.documentation.spring.web.json.Json> springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)]
2019-03-01 17:14:18.793 INFO 5924 --- [ost-startStop-2] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@7f03a74a: startup date [Fri Mar 01 17:14:12 CST 2019]; root of context hierarchy
2019-03-01 17:14:18.956 INFO 5924 --- [ost-startStop-2] o.s.w.s.h.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-03-01 17:14:18.956 INFO 5924 --- [ost-startStop-2] o.s.w.s.h.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-03-01 17:14:19.054 INFO 5924 --- [ost-startStop-2] o.s.w.s.h.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-03-01 17:14:19.125 WARN 5924 --- [ost-startStop-2] ion$DefaultTemplateResolverConfiguration : Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
2019-03-01 17:14:19.529 INFO 5924 --- [ost-startStop-2] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2019-03-01 17:14:19.544 INFO 5924 --- [ost-startStop-2] o.s.c.s.DefaultLifecycleProcessor : Starting beans in phase 2147483647
2019-03-01 17:14:19.544 INFO 5924 --- [ost-startStop-2] d.s.w.p.DocumentationPluginsBootstrapper : Context refreshed
2019-03-01 17:14:19.621 INFO 5924 --- [ost-startStop-2] d.s.w.p.DocumentationPluginsBootstrapper : Found 1 custom documentation plugin(s)
2019-03-01 17:14:19.709 INFO 5924 --- [ost-startStop-2] s.d.s.w.s.ApiListingReferenceScanner : Scanning for api listing references
2019-03-01 17:14:20.035 INFO 5924 --- [ost-startStop-2] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: opUpdateUsingPOST_1
2019-03-01 17:14:20.105 INFO 5924 --- [ost-startStop-2] o.d.DaacApplication : Started DaacApplication in 8.215 seconds (JVM running for 360.081)
2019-03-01 17:14:20.123 INFO 5924 --- [ost-startStop-2] o.d.ServletInitializer : Root context already created (using as parent).
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.0.0.RELEASE)
2019-03-01 17:14:20.209 INFO 5924 --- [ost-startStop-2] o.d.ServletInitializer : No active profile set, falling back to default profiles: default
2019-03-01 17:14:20.216 INFO 5924 --- [ost-startStop-2] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@39e599cc: startup date [Fri Mar 01 17:14:20 CST 2019]; parent: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@7f03a74a
2019-03-01 17:14:21.031 INFO 5924 --- [ost-startStop-2] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2019-03-01 17:14:21.103 INFO 5924 --- [ost-startStop-2] o.s.w.c.ContextLoader : Root WebApplicationContext: initialization completed in 887 ms
2019-03-01 17:14:21.149 INFO 5924 --- [ost-startStop-2] o.s.b.w.s.RegistrationBean : Filter errorPageFilter was not registered (possibly already registered?)
2019-03-01 17:14:21.149 INFO 5924 --- [ost-startStop-2] o.s.b.w.s.RegistrationBean : Filter crosLoginFilter was not registered (possibly already registered?)
2019-03-01 17:14:21.764 INFO 5924 --- [ost-startStop-2] pertySourcedRequestMappingHandlerMapping : Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity<springfox.documentation.spring.web.json.Json> springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)]
2019-03-01 17:14:22.182 INFO 5924 --- [ost-startStop-2] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2019-03-01 17:14:22.186 INFO 5924 --- [ost-startStop-2] o.s.c.s.DefaultLifecycleProcessor : Starting beans in phase 2147483647
2019-03-01 17:14:22.191 INFO 5924 --- [ost-startStop-2] d.s.w.p.DocumentationPluginsBootstrapper : Context refreshed
2019-03-01 17:14:22.192 INFO 5924 --- [ost-startStop-2] d.s.w.p.DocumentationPluginsBootstrapper : Found 1 custom documentation plugin(s)
2019-03-01 17:14:22.215 INFO 5924 --- [ost-startStop-2] s.d.s.w.s.ApiListingReferenceScanner : Scanning for api listing references
2019-03-01 17:14:22.224 WARN 5924 --- [ost-startStop-2] s.d.s.p.CachingModelPropertiesProvider : Exception calculating properties for model(org.daac.version.pojo.response.CfgUpdateResponse) -> ModelContext{groupName=default, type=org.daac.version.pojo.response.CfgUpdateResponse, isReturnType=true}. java.lang.NullPointerException
2019-03-01 17:14:22.227 WARN 5924 --- [ost-startStop-2] s.d.s.p.CachingModelPropertiesProvider : Exception calculating properties for model(org.daac.version.pojo.response.CfgUpdateResponse) -> ModelContext{groupName=default, type=org.daac.version.pojo.response.CfgUpdateResponse, isReturnType=true}. java.lang.NullPointerException
2019-03-01 17:14:22.233 WARN 5924 --- [ost-startStop-2] s.d.s.p.CachingModelPropertiesProvider : Exception calculating properties for model(org.daac.version.pojo.response.DevicesResponse) -> ModelContext{groupName=default, type=org.daac.version.pojo.response.DevicesResponse, isReturnType=true}. java.lang.NullPointerException
2019-03-01 17:14:22.234 WARN 5924 --- [ost-startStop-2] s.d.s.p.CachingModelPropertiesProvider : Exception calculating properties for model(org.daac.version.pojo.response.DevicesResponse) -> ModelContext{groupName=default, type=org.daac.version.pojo.response.DevicesResponse, isReturnType=true}. java.lang.NullPointerException
2019-03-01 17:14:22.243 WARN 5924 --- [ost-startStop-2] s.d.s.p.CachingModelPropertiesProvider : Exception calculating properties for model(org.daac.version.pojo.response.DeviceResponse) -> ModelContext{groupName=default, type=org.daac.version.pojo.response.DeviceResponse, isReturnType=true}. java.lang.NullPointerException
2019-03-01 17:14:22.248 WARN 5924 --- [ost-startStop-2] s.d.s.p.CachingModelPropertiesProvider : Exception calculating properties for model(org.daac.version.pojo.response.DeviceResponse) -> ModelContext{groupName=default, type=org.daac.version.pojo.response.DeviceResponse, isReturnType=true}. java.lang.NullPointerException
2019-03-01 17:14:22.252 WARN 5924 --- [ost-startStop-2] s.d.s.p.CachingModelPropertiesProvider : Exception calculating properties for model(org.daac.version.pojo.response.TarGetResponse) -> ModelContext{groupName=default, type=org.daac.version.pojo.response.TarGetResponse, isReturnType=true}. java.lang.NullPointerException
2019-03-01 17:14:22.253 WARN 5924 --- [ost-startStop-2] s.d.s.p.CachingModelPropertiesProvider : Exception calculating properties for model(org.daac.version.pojo.response.TarGetResponse) -> ModelContext{groupName=default, type=org.daac.version.pojo.response.TarGetResponse, isReturnType=true}. java.lang.NullPointerException
2019-03-01 17:14:22.261 WARN 5924 --- [ost-startStop-2] s.d.s.p.CachingModelPropertiesProvider : Exception calculating properties for model(org.daac.version.pojo.request.FeedBackRequest) -> ModelContext{groupName=default, type=org.daac.version.pojo.request.FeedBackRequest, isReturnType=false}. java.lang.NullPointerException
2019-03-01 17:14:22.263 WARN 5924 --- [ost-startStop-2] s.d.s.p.CachingModelPropertiesProvider : Exception calculating properties for model(org.daac.version.pojo.request.FeedBackRequest) -> ModelContext{groupName=default, type=org.daac.version.pojo.request.FeedBackRequest, isReturnType=false}. java.lang.NullPointerException
2019-03-01 17:14:22.296 WARN 5924 --- [ost-startStop-2] s.d.s.p.CachingModelPropertiesProvider : Exception calculating properties for model(org.daac.version.pojo.response.NotifyResponse) -> ModelContext{groupName=default, type=org.daac.version.pojo.response.NotifyResponse, isReturnType=true}. java.lang.NullPointerException
2019-03-01 17:14:22.297 WARN 5924 --- [ost-startStop-2] s.d.s.p.CachingModelPropertiesProvider : Exception calculating properties for model(org.daac.version.pojo.response.NotifyResponse) -> ModelContext{groupName=default, type=org.daac.version.pojo.response.NotifyResponse, isReturnType=true}. java.lang.NullPointerException
2019-03-01 17:14:22.306 WARN 5924 --- [ost-startStop-2] s.d.s.p.CachingModelPropertiesProvider : Exception calculating properties for model(org.daac.version.pojo.request.TarGetRequest) -> ModelContext{groupName=default, type=org.daac.version.pojo.request.TarGetRequest, isReturnType=false}. java.lang.NullPointerException
2019-03-01 17:14:22.308 WARN 5924 --- [ost-startStop-2] s.d.s.p.CachingModelPropertiesProvider : Exception calculating properties for model(org.daac.version.pojo.request.TarGetRequest) -> ModelContext{groupName=default, type=org.daac.version.pojo.request.TarGetRequest, isReturnType=false}. java.lang.NullPointerException
2019-03-01 17:14:22.313 WARN 5924 --- [ost-startStop-2] s.d.s.p.CachingModelPropertiesProvider : Exception calculating properties for model(org.daac.version.pojo.request.UpdateRequest) -> ModelContext{groupName=default, type=org.daac.version.pojo.request.UpdateRequest, isReturnType=false}. java.lang.NullPointerException
2019-03-01 17:14:22.317 WARN 5924 --- [ost-startStop-2] s.d.s.p.CachingModelPropertiesProvider : Exception calculating properties for model(org.daac.version.pojo.request.UpdateRequest) -> ModelContext{groupName=default, type=org.daac.version.pojo.request.UpdateRequest, isReturnType=false}. java.lang.NullPointerException
2019-03-01 17:14:22.322 INFO 5924 --- [ost-startStop-2] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: opUpdateUsingPOST_1
2019-03-01 17:14:22.334 INFO 5924 --- [ost-startStop-2] o.d.ServletInitializer : Started ServletInitializer in 2.209 seconds (JVM running for 362.311)
01-Mar-2019 17:14:22.353 信息 [localhost-startStop-2] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [E:\tomcat\apache-tomcat-8.5.34\webapps\devicemgmtservice] has finished in [19,539] ms