You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Brought in line with regular component scanning behavior through a base package comparison including a package separator, strictly checking specified base package and sub-packages thereof (as originally intended).
Some applications may accidentally rely on matches with other packages which start with the same prefix. For this reason, we're only fixing this in 4.1.3 and not in 4.0.9. Anyone affected in 4.1.3 should simply specify the other packages explicitly and not rely on unintended prefix matches; for 4.0.9, we'd like to not disrupt at all and therefore avoid this minor hassle.
Kazuki Shimizu opened SPR-12509 and commented
When use the
@ControllerAdvice(basePackageClasses)
, it has been applied to the other base package'sController
.e.g)
Above
@ModelAttribute
method has been applied to theController
underio.github.kazuki43zoo.app
andio.github.kazuki43zoo.app1
package.I think that should not be applied to the
Controller
underio.github.kazuki43zoo.app1
package.p.s)
basePackages
andvalue
attribute is similar behavior.Affects: 4.1.2
Reference URL: https://github.com/kazuki43zoo/spring-controller-advice
Issue Links:
@ControllerAdvice
must contain at least one Controller@ControllerAdvice
(basePackages), has been applied to all controllers.Referenced from: commits d1f8968
The text was updated successfully, but these errors were encountered: