I have a Spring Boot Rest Web Service. I've also added static content with swagger-ui to the src/main/resources/static.swagger-ui so I can access my documentation.
By default SimpleUrlHandlerMapping is mapping my request to the static content automatically during startup.
...
2017-09-07 15:41:21.144 INFO 6912 --- [localhost-startStop-1] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-09-07 15:41:21.144 INFO 6912 --- [localhost-startStop-1] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-09-07 15:41:21.212 INFO 6912 --- [localhost-startStop-1] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
...
I added reference to the Application Insights in my gradle file
... part of my gradle file
// Application Insight related jar - required for telemetrics and loggers
compile("com.microsoft.azure:applicationinsights-web:${aiWeb}")
compile("com.microsoft.azure:applicationinsights-logging-logback:${aiLogback}")
...
This is somehow breaking SimpleUrlHandlerMapping as mapping to the static content doesn't work any more.
Any idea how to fix it? I could probably add mapper manually...
My stack:
- springBootVersion=1.5.3.RELEASE
- springSecurityVersion=4.2.1.RELEASE
- aiWeb=1.0.9 aiLogback=1.0.6