I have a modularized Spring Boot application with controllers spread across various sub-packages of a main package. I want to exclude one specific sub-package from the OpenAPI documentation.
Does specifying a parent package in packagesToScan cause all its sub-packages to be scanned regardless of the packagesToExclude configuration?
I configured packagesToScan to “net.company.application” and packagesToExclude to “net.company.application.web.external”. However, controllers from “net.company.application.web.external” are not being excluded.
I expected the controllers from “net.company.application.web.external” to be excluded.
t_gunjan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.