Spring Profiles provide a way to segregate parts of our application configuration and make it only available in certain environments. Any @Component or @Configuration can be marked with @Profile to limit when it is loaded.