No qualifying bean of type 'org.springframework.cloud.bootstrap.encrypt.RsaProperties' No qualifying bean of type 'org.springframework.cloud.bootstrap.encrypt.RsaProperties' spring spring

No qualifying bean of type 'org.springframework.cloud.bootstrap.encrypt.RsaProperties'


Just ran into this problem too.

My best guess is that it is a bug in the latest version of Spring Cloud. I will open an issue on Spring Cloud project and link it here once finished.

I am using application.yml, not application.properties.

When you put any config for encrypt: * in application yml, it will give you this error. As a work-a-round, I tried putting the encrypt:* config in bootstrap.yml

After that, the Spring Boot app started successfully and it will have the RsaProperties Bean :)

Hope this helps!