• Andy Wilkinson's avatar
    Remove use of `@PostConstruct` from main code · 30a0ccab
    Andy Wilkinson authored
    When running on Java 11 (where `@PostConstruct` is no longer part of
    the JRE) and without a dependency on jakarta-annotation-api,
    `@PostContruct` annotions are silently dropped. This leads to obscure and
    hard-to-track down changes in the behaviour of our auto-configuration
    as the `@PostConstruct`-annotated methods are not invoked.
    
    To allow users to run on Java 11 without having jakarta-annotation-api
    on the classpath, this commit removes use of `@PostConstruct` from main
    code. A Checkstyle rule has also been added to prevent its usage in
    main code from being reintroduced.
    
    Closes gh-23723
    30a0ccab
Name
Last commit
Last update
.bomr Loading commit data...
.github Loading commit data...
.mvn Loading commit data...
ci Loading commit data...
eclipse Loading commit data...
git/hooks Loading commit data...
idea Loading commit data...
spring-boot-project Loading commit data...
spring-boot-tests Loading commit data...
src/checkstyle Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
SUPPORT.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...