-
Notifications
You must be signed in to change notification settings - Fork 41.3k
Closed
Labels
status: supersededAn issue that has been superseded by anotherAn issue that has been superseded by anothertype: enhancementA general enhancementA general enhancement
Description
Lines 73 to 78 in badccc0
EndpointServlet endpointServlet = endpoint.getEndpointServlet(); | |
Dynamic registration = servletContext.addServlet(name, | |
endpointServlet.getServlet()); | |
registration.addMapping(urlMapping); | |
registration.setInitParameters(endpointServlet.getInitParameters()); | |
logger.info("Registered '" + path + "' to " + name); |
Why is setting loadOnStartup not allowed in ServletEndpointRegistrar?
In my specific use case I need that the invocation of 'init' method in wrapped Servlet instance be on startup, not in the first http invocation.
Is there a reason to not provide this option for EndPointServlet's?
To provide it, org.springframework.boot.actuate.endpoint.web.EndpointServlet should contain a property 'loadOnStartup' in addition to already present 'initParameters' property. If there is no reason to not do it, I can provide a PR.
Thanks for answering.
Metadata
Metadata
Assignees
Labels
status: supersededAn issue that has been superseded by anotherAn issue that has been superseded by anothertype: enhancementA general enhancementA general enhancement