Closed ffroliva closed 6 months ago
Hey @ffroliva,
this is a Spring related issue (not Spring Boot Admin). Spring Boot Admin already provides an instance of ClientProperties
(see @EnableConfigurationProperties
in SpringBootAdminClientAutoConfiguration
). If you @Import
ClientProperties
again, there will be another instance of this class and this is what the error message is about.
Just remove the line @Import({ClientProperties.class})
and it should work. Please let us know if that helps.
Dear Timo,
I have added the @.***and removed the
@Import({ClientProperties.class})`. It worked.
I wonder if the approach I am taking is the best approach to customize the
RegistrationClient
with SSL configuration. Do you suggest any
alternative solution?
Thank you in advance.
Regards,
Flavio Oliva
Em sex., 19 de abr. de 2024 às 07:35, Timo @.***> escreveu:
Hey @ffroliva https://github.com/ffroliva, this is a Spring related issue (not Spring Boot Admin). Spring Boot Admin already provides an instance of ClientProperties (see @EnableConfigurationProperties in SpringBootAdminClientAutoConfiguration). If you @Import ClientProperties again, there will be another instance of this class and this is what the error message is about.
Just remove the line @Import({ClientProperties.class}) and it should work. Please let us know if that helps.
— Reply to this email directly, view it on GitHub https://github.com/codecentric/spring-boot-admin/issues/3312#issuecomment-2065855069, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF67VGZNFH24DFVT4IFERQLY6C3MRAVCNFSM6AAAAABGLMINJ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRVHA2TKMBWHE . You are receiving this because you were mentioned.Message ID: @.***>
Hey @ffroliva,
right now it seems that this is the only way to customize the RegistrationClient
. We are considering changing our auto-configuration so that it'll be easier to customize and/or implement a property to customize the SSL bundle.
Thank you @Timo
Looking forward to this enhancement.
BTW, spring boot admin is a great project. Well done!
You may close this thread if you understand so.
Regards,
Flavio
Em sex., 19 de abr. de 2024 às 12:51, Timo @.***> escreveu:
Hey @ffroliva https://github.com/ffroliva, right now it seems that this is the only way to customize the RegistrationClient. We are considering changing our auto-configuration so that it'll be easier to customize and/or implement a property to customize the SSL bundle.
— Reply to this email directly, view it on GitHub https://github.com/codecentric/spring-boot-admin/issues/3312#issuecomment-2066410988, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF67VG65VHHHBBB4VYEWTG3Y6EAN5AVCNFSM6AAAAABGLMINJ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRWGQYTAOJYHA . You are receiving this because you were mentioned.Message ID: @.***>
Thanks! We will mention this issue if we implement any of the enhancements.
Spring Boot Admin Server information
Version: 3.1.0
Spring Boot version: 3.1.0
Configured Security: basic auth
Webflux or Servlet application: servlet applicatoin
Client information
Spring Boot versions: 3.1.0
Used discovery mechanism: self-registration
Webflux or Servlet application: servlet
Description
I need to customize
RegistrationClient
and for that, I have created a Configuration classes as follows:When I start the application I get the following error:
Parameter 1 of method registrator in de.codecentric.boot.admin.client.config.SpringBootAdminClientAutoConfiguration required a single bean, but 2 were found: