How to get the property scanPackages in SpringBoot

How to get scanPackages this attribute in < H1 > SpringBoot < / H1 > < H2 > scene < / H2 >

for example, if we add this comment to the SpringBoot startup class, how can we get the value of scanBasePackages elsewhere?

@SpringBootApplication(scanBasePackages = "com.rxliuli.example")
Jul.01,2022

clipboard.png

Menu