Failed to parse configuration class when using @ComponentScan
with FilterType.ASPECTJ
, without org.aspectj
library.
#34135
Labels
status: invalid
An issue that we don't feel is valid
Hello, I'm using spring boot 3.4.0.
I've found that something goes wrong when using
@ComponentScan
in certain situations.If I try to use
excludeFilters
on@ComponentScan
withFilterType.ASPECTJ
, application run fails.However, If I add
spring-starter-aop
dependency(or aspectj library)
, application runs successfully, even the source code hasn't changed at all.I think it's caused by
AspectJTypeFilter
onorg.springframework.core.type.filter
package.If
FilterType.ASPECTJ
were used,TypeFilterUtils
attempts to createAspectJTypeFilter
.But in
AspectJTypeFilter
, it requiresWorld
,TypePattern
, etc oforg.aspectj
library, so it cause error.The text was updated successfully, but these errors were encountered: