pom.xml --->
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
application.properties --->
server.port=8080
logging.level.web=DEBUG
getting infinite loop while starting
:: Spring Boot :: (v2.2.4.RELEASE)
2020-01-31 10:43:53.188 INFO 13246 --- [ restartedMain] net.thrymr.AnnotationDemoApplication : Starting AnnotationDemoApplication on thrymr-H310M-S2-2-0 with PID 13246 (/home/thrymr/Desktop/thrymr_starter-project/annotationdemo/target/classes started by thrymr in /home/thrymr/Desktop/thrymr_starter-project/thrymr-custom-annotatin)
2020-01-31 10:43:53.196 INFO 13246 --- [ restartedMain] net.thrymr.AnnotationDemoApplication : No active profile set, falling back to default profiles: default
2020-01-31 10:43:53.246 INFO 13246 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2020-01-31 10:43:53.972 INFO 13246 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2020-01-31 10:43:53.981 INFO 13246 --- [ restartedMain] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2020-01-31 10:43:53.981 INFO 13246 --- [ restartedMain] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.30]
2020-01-31 10:43:54.015 INFO 13246 --- [ restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2020-01-31 10:43:54.015 DEBUG 13246 --- [ restartedMain] o.s.web.context.ContextLoader : Published root WebApplicationContext as ServletContext attribute with name [org.springframework.web.context.WebApplicationContext.ROOT]
2020-01-31 10:43:54.015 INFO 13246 --- [ restartedMain] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 769 ms
2020-01-31 10:43:54.030 DEBUG 13246 --- [ restartedMain] o.s.b.w.s.ServletContextInitializerBeans : Mapping filters: characterEncodingFilter urls=[/*] order=-2147483648, formContentFilter urls=[/*] order=-9900, requestContextFilter urls=[/*] order=-105
2020-01-31 10:43:54.030 DEBUG 13246 --- [ restartedMain] o.s.b.w.s.ServletContextInitializerBeans : Mapping servlets: dispatcherServlet urls=[/]
2020-01-31 10:43:54.158 INFO 13246 --- [ restartedMain] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2020-01-31 10:43:54.166 DEBUG 13246 --- [ restartedMain] s.w.s.m.m.a.RequestMappingHandlerAdapter : ControllerAdvice beans: 0 @ModelAttribute, 0 @InitBinder, 1 RequestBodyAdvice, 1 ResponseBodyAdvice
2020-01-31 10:43:54.200 DEBUG 13246 --- [ restartedMain] s.w.s.m.m.a.RequestMappingHandlerMapping : 2 mappings in 'requestMappingHandlerMapping'
2020-01-31 10:43:54.218 DEBUG 13246 --- [ restartedMain] o.s.w.s.handler.SimpleUrlHandlerMapping : Patterns [/webjars/**, /**] in 'resourceHandlerMapping'
2020-01-31 10:43:54.225 DEBUG 13246 --- [ restartedMain] .m.m.a.ExceptionHandlerExceptionResolver : ControllerAdvice beans: 0 @ExceptionHandler, 1 ResponseBodyAdvice
2020-01-31 10:43:54.261 INFO 13246 --- [ restartedMain] o.s.b.d.a.OptionalLiveReloadServer : LiveReload server is running on port 35729
2020-01-31 10:43:54.286 INFO 13246 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
2020-01-31 10:43:54.288 INFO 13246 --- [ restartedMain] net.thrymr.AnnotationDemoApplication : Started AnnotationDemoApplication in 1.386 seconds (JVM running for 1.687)
2020-01-31 10:43:54.312 INFO 13246 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2020-01-31 10:43:54.312 INFO 13246 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2020-01-31 10:43:54.312 DEBUG 13246 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Detected StandardServletMultipartResolver
2020-01-31 10:43:54.315 DEBUG 13246 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : enableLoggingRequestDetails='false': request parameters and headers will be masked to prevent unsafe logging of potentially sensitive data
2020-01-31 10:43:54.315 INFO 13246 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 3 ms
**
> 2020-01-31 10:43:54.320 DEBUG 13246 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : **GET "/null/swagger-resources/configuration/ui", parameters={}**
> 2020-01-31 10:43:54.323 DEBUG 13246 --- [nio-8080-exec-1] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped to ResourceHttpRequestHandler ["classpath:/META-INF/resources/", "classpath:/resources/", "classpath:/static/", "classpath:/public/", "/"]
> 2020-01-31 10:43:54.324 DEBUG 13246 --- [nio-8080-exec-1] o.s.w.s.r.ResourceHttpRequestHandler : Resource not found
> 2020-01-31 10:43:54.324 DEBUG 13246 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Completed 404 NOT_FOUND
> 2020-01-31 10:43:54.327 DEBUG 13246 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : "ERROR" dispatch for GET "/error", parameters={}
> 2020-01-31 10:43:54.328 DEBUG 13246 --- [nio-8080-exec-1] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest)
> 2020-01-31 10:43:54.345 DEBUG 13246 --- [nio-8080-exec-1] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Using 'application/json', given [application/json] and supported [application/json, application/*+json, application/json, application/*+json]
> 2020-01-31 10:43:54.345 DEBUG 13246 --- [nio-8080-exec-1] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Writing [{timestamp=Fri Jan 31 10:43:54 IST 2020, status=404, error=Not Found, message=No message available, (truncated)...]
> 2020-01-31 10:43:54.369 DEBUG 13246 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Exiting from "ERROR" dispatch, status 404
**
2020-01-31 10:43:54.374 DEBUG 13246 --- [nio-8080-exec-2] o.s.web.servlet.DispatcherServlet : GET "/null/swagger-resources/configuration/security", parameters={}
2020-01-31 10:43:54.374 DEBUG 13246 --- [nio-8080-exec-2] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped to ResourceHttpRequestHandler ["classpath:/META-INF/resources/", "classpath:/resources/", "classpath:/static/", "classpath:/public/", "/"]
2020-01-31 10:43:54.375 DEBUG 13246 --- [nio-8080-exec-2] o.s.w.s.r.ResourceHttpRequestHandler : Resource not found
2020-01-31 10:43:54.375 DEBUG 13246 --- [nio-8080-exec-2] o.s.web.servlet.DispatcherServlet : Completed 404 NOT_FOUND
2020-01-31 10:43:54.375 DEBUG 13246 --- [nio-8080-exec-2] o.s.web.servlet.DispatcherServlet : "ERROR" dispatch for GET "/error", parameters={}
2020-01-31 10:43:54.375 DEBUG 13246 --- [nio-8080-exec-2] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest)
2020-01-31 10:43:54.376 DEBUG 13246 --- [nio-8080-exec-2] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Using 'application/json', given [application/json] and supported [application/json, application/*+json, application/json, application/*+json]
2020-01-31 10:43:54.376 DEBUG 13246 --- [nio-8080-exec-2] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Writing [{timestamp=Fri Jan 31 10:43:54 IST 2020, status=404, error=Not Found, message=No message available, (truncated)...]
2020-01-31 10:43:54.377 DEBUG 13246 --- [nio-8080-exec-2] o.s.web.servlet.DispatcherServlet : Exiting from "ERROR" dispatch, status 404
Comment From: wilkinsona
Your application has started successfully:
2020-01-31 10:43:54.288 INFO 13246 --- [ restartedMain] net.thrymr.AnnotationDemoApplication : Started AnnotationDemoApplication in 1.386 seconds (JVM running for 1.687)
Something is then making GET requests for Swagger-related content. Spring Boot itself will not be doing this as it knows nothing about Swagger. I suspect you have something on your machine (or elsewhere on your network) that is making the requests. This is out of Spring Boot’s control so, unfortunately, there’s nothing we can do to help you.
Comment From: satishpatro44
I am getting this in 2.9.2 This issue is apparently more weird then I thought. We have multi module app, where common packages (build.gradle), config of swagger is there. This issue is coming for only one module, but not coming for other. And, that to it comes only when chromium related browsers (chrome, edge new) is opened.
Comment From: codingmtwom
Hi, today I have the same issue, there are any clues about this weird behavior, I'm using the 2.9.2 version and my MS is called through a bff and this last pass through Apigee proxy into my MS.
And my local environment it works fine because I call it directly.
Thanks in advance.