java - How to find classes by annotation on classpath? -
java - How to find classes by annotation on classpath? -
this question has reply here:
scanning java annotations @ runtime 15 answerson startup of spring-boot
application want perform scan @entitiy
classes on classpath.
moreover, i'd filter entities @customannotation
.
i want create kind of auto configuration, , utilize bundle of entities found in:
entitymanagerfactorybuilder .datasource(ds) .packages(getpackages()))
but don't want explicit define bundle there appropriate entities found, find them on startup. possible @ all?
i don't know reply in order have annotations on compiled class files, must defined follows @retention(retentionpolicy.runtime)
java spring spring-boot
Comments
Post a Comment