How to use Bean Configuration in Spring Boot with an Example

How to use Bean Configuration in Spring Boot with an Example