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 answers

on 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

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -