spring-framework / org.springframework.oxm.jaxb / Jaxb2Marshaller / setPackagesToScan

setPackagesToScan

open fun setPackagesToScan(@Nullable vararg packagesToScan: String): Unit

Set the packages to search for classes with JAXB2 annotations in the classpath. This is using a Spring-bases search and therefore analogous to Spring's component-scan feature (org.springframework.context.annotation.ClassPathBeanDefinitionScanner).

Setting either this property, "contextPath" or "classesToBeBound" is required.