[id='adding-embeddedcm-bean_{context}']
= Adding the EmbeddedCacheManager Bean
Configure your application to use embedded caches.

.Procedure

. Add `infinispan-spring-boot3-starter-embedded` to your project's classpath to enable Embedded mode.
. Use the Spring `@Autowired` annotation to include an `EmbeddedCacheManager` bean in your Java configuration classes, as in the following example:
+
[source,java,options="nowrap"]
----
include::code_examples/AutowiredEmbeddedCacheManager.java[]
----

You are now ready to use {brandname} caches directly within your application, as in the following example:

[source,java,options="nowrap"]
----
include::code_examples/CacheManagerGetCache.java[]
----
