DEV Community

Discussion on: Custom Annotation Scanning with Spring Boot

Collapse
 
siy profile image
Sergiy Yevtushenko

Run-time reflection and class path scanning are great ways to make Java apps slow, memory hungry and taking ages to start.

Collapse
 
adithyank profile image
K Adithyan

True. But, based on the application and the scope of scanning, developers can make a tradeoff to utilize this annotation based design....!

Collapse
 
siy profile image
Sergiy Yevtushenko

I think that run-time reflection should be avoided as much as possible. Just take a look at Micronaut - same convenience and flexibility and no drawbacks of run-time reflection.