Annotation-free Spring

This page summarizes the projects mentioned and recommended in the original post on /r/java

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • spring-native

    Discontinued Spring Native is now superseded by Spring Boot 3 official native support

  • But I just took a peek at Spring Native roadmap for 0.11 and they will be adding some of the spring-fu and spring-init-inspired functional configuration to spring-aot project (which, like I mentioned in another comment, already has compile-time generation support for various dynamic proxies that you mentioned)

  • avaje-inject

    Dependency injection via APT (source code generation) ala "Server-Side Dagger DI"

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • spring-init

  • There is at least on project by the spring team to test moving part of the spring startup step (code using @Configuration) to annotation processing + code generation in the spring-init project. Unsure about security, cachable, retryables, error handling or route handling though. Spring-fu has both a kotlin and a java dsl, but that's not the same as keeping your existing code as-is and then running an annotation processor at startup time.

  • spring-fu

    Configuration DSLs for Spring Boot

  • It's mentioned in the article, even though the examples are written in Kotlin spring-fu supports a java-based dsl.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts