# Keycloak embedded in spring boot official docs

**URL:** <https://forum.keycloak.org/t/keycloak-embedded-in-spring-boot-official-docs/5681>\
**Category:** Getting advice\
**Created:** [October 30, 2020, 6:13am UTC](https://forum.keycloak.org/t/keycloak-embedded-in-spring-boot-official-docs/5681 "2020-10-30T06:13:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thepipeman](https://avatars.discourse-cdn.com/v4/letter/t/97f17d/32.png) [@thepipeman](https://forum.keycloak.org/u/thepipeman)\
**Post date:** [October 30, 2020, 6:13am UTC](https://forum.keycloak.org/t/keycloak-embedded-in-spring-boot-official-docs/5681/1 "2020-10-30T06:13:35Z")

</div>

Hi!

I am looking for official documentation of Keycloak embedded in a spring-boot application.

I’m reading these currently:

1. [https://www.baeldung.com/keycloak-embedded-in-spring-boot-app](https://www.baeldung.com/keycloak-embedded-in-spring-boot-app)
2. [https://github.com/thomasdarimont/embedded-spring-boot-keycloak-server](https://github.com/thomasdarimont/embedded-spring-boot-keycloak-server)

However, I think I won’t be able to get the complete information that I need here.  
e.g.

1. Can I configure it to make KC use a different datasource? - from these they are using `spring.datasource`
2. Clustering with embedded KC
3. And more questions…

Could someone please lead me to some official documentation about embedded KC in spring-boot?

Thank you!

---

<div class="post-metadata">

**Author:** ![Sumanta](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@Sumanta](https://forum.keycloak.org/u/Sumanta)\
**Post date:** [January 9, 2025, 2:58pm UTC](https://forum.keycloak.org/t/keycloak-embedded-in-spring-boot-official-docs/5681/2 "2025-01-09T14:58:20Z")

</div>

Hello @thepipeman, did you able to get/find any such official document?

Regards!

---

<div class="post-metadata">

**Author:** ![dasniko](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dasniko/32/2969_2.png) [@dasniko](https://forum.keycloak.org/u/dasniko)\
**Post date:** [January 9, 2025, 9:14pm UTC](https://forum.keycloak.org/t/keycloak-embedded-in-spring-boot-official-docs/5681/3 "2025-01-09T21:14:59Z")

</div>

You won’t find official docs for this, as this is no supported feature.  
It accidentially works, but it’s in no way supported by the Keycloak project itself. There is no official “embedded Keycloak”.

---

<div class="post-metadata">

**Author:** ![Sumanta](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@Sumanta](https://forum.keycloak.org/u/Sumanta)\
**Post date:** [January 27, 2025, 6:02pm UTC](https://forum.keycloak.org/t/keycloak-embedded-in-spring-boot-official-docs/5681/4 "2025-01-27T18:02:17Z")

</div>

Thank you @dasniko for the information.
