Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-14213

Avoid hard logging of WebApplicationInitializer classes

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 4.2.5, 4.3 RC1
    • Fix Version/s: 4.2.6, 4.3 RC2
    • Component/s: Web
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      SpringServletContainerInitializer currently finds, initializes and logs all WebApplicationInitializer implementations in onStartup. With Spring Boot this can be a little confusing because initializers might be conditional. We can't use the usual `@Condition` annotation since the ApplicationContext hasn't been created yet, but perhaps we could add a ConditionalWebApplicationInitializer extension to WebApplicationInitializer with an additional isActive() method.

      See https://github.com/spring-projects/spring-boot/issues/5778 for the original Boot bug.

        Attachments

          Activity

            People

            Assignee:
            juergen.hoeller Juergen Hoeller
            Reporter:
            pwebb Phil Webb
            Last updater:
            Spring Issuemaster
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 28 weeks, 6 days ago