Micronaut DI comparison

Code Generation

  • DInject generates source code where Micronaut generates bytecode
  • DInject determines the ordering of dependency injection at compile time and not runtime

Both

  • Do not use classpath scanning
  • Support modularity (injecting dependencies across modules)