Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[spring] Running a spring boot test results in an exception that two bean are created #21

Open
dhslrl321 opened this issue Oct 16, 2022 · 2 comments
Labels
BUG Something isn't working

Comments

@dhslrl321
Copy link
Owner

image

Parameter 0 of constructor in com.github.dhslrl321.zsmq.ZsmqAutoconfiguration required a single bean, but 2 were found:
	- zsmqProperty: defined in URL [jar:file:/Users/trevari/Desktop/git_repository/wonik/zsmq/zola-messaging-spring-boot-autoconfigure/build/libs/zola-messaging-spring-boot-autoconfigure-1.0.0.jar!/com/github/dhslrl321/zsmq/ZsmqProperty.class]
	- zsmq-com.github.dhslrl321.zsmq.ZsmqProperty: defined in null
@dhslrl321 dhslrl321 added the BUG Something isn't working label Oct 16, 2022
@dhslrl321
Copy link
Owner Author

The Problem caused by misuse of @Configuration, @ConfigurationProperties and @EnableConfigurationProperties

@dhslrl321
Copy link
Owner Author

dhslrl321 added a commit that referenced this issue Oct 16, 2022
[#19] [#21] refactoring and add integration test environment
dhslrl321 added a commit that referenced this issue Oct 16, 2022
Revert "[#19] [#21] refactoring and add integration test environment"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Something isn't working
Projects
No open projects
Status: No status
Development

No branches or pull requests

1 participant