apache / apache/grails-core

support SpringBootServletInitializer customization

Open
#10,113 1 comment 0 reactions 0 assignees View on GitHub
relates-to: spring boot type: enhancement type: improvement
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

how to customize the `SpringBootServletInitializer` injected by `BootInitializerClassInjector`?
for now, to apply a custom boot `ApplicationListener`, i ended up using `META-INF/spring.factories` but i would have prefered to use `SpringApplicationBuilder.listeners()`.

if this is already possible please consider this just as a question, if not then it is a feature request.

n.b. because this is no bug report i did not stick to the issue template.
also, i asked this in slack multiple times over a period of something like two weeks prior to opening this issue. unfortunately, no reply (yet).

Contributor guide

Open the contributing guide

Research direction

Start by tracing BootInitializerClassInjector and the injected SpringBootServletInitializer, then inspect how SpringApplicationBuilder.listeners() is configured. The issue names no files or tests; done would require a decided, documented way to customize the initializer or confirm that the requested listener configuration is already supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, spring-boot
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.