Skip to content

Fix LoggedAspect bean creation failure caused by stray @Component - #4

Merged
Fayupable merged 1 commit into
mainfrom
dev/v1.2.2
Aug 14, 2026
Merged

Fix LoggedAspect bean creation failure caused by stray @Component#4
Fayupable merged 1 commit into
mainfrom
dev/v1.2.2

Conversation

@Fayupable

Copy link
Copy Markdown
Owner

Remove @component from LoggedAspect. It was already correctly constructed and registered exclusively by LoggedAutoConfiguration's @bean method, guarded by @ConditionalOnMissingBean(LoggedAspect.class). The stray @component let component-scanning register an under-specified bean definition for the same type first whenever a consuming application's own base package overlapped com.fayupable.logged.spring.aspect, causing that guard to back off and Spring to fail resolving which of LoggedAspect's two constructors to use — a startup-time BeanCreationException: No default constructor found.

Bumps version to 1.2.2.

Remove @component from LoggedAspect. It was already correctly constructed
and registered exclusively by LoggedAutoConfiguration's @bean method,
guarded by @ConditionalOnMissingBean(LoggedAspect.class). The stray
@component let component-scanning register an under-specified bean
definition for the same type first whenever a consuming application's
own base package overlapped com.fayupable.logged.spring.aspect,
causing that guard to back off and Spring to fail resolving which of
LoggedAspect's two constructors to use — a startup-time
BeanCreationException: No default constructor found.

Bumps version to 1.2.2.
@Fayupable

Copy link
Copy Markdown
Owner Author

#3

@Fayupable
Fayupable merged commit fe1a305 into main Aug 14, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant