Problem
Stuck on implementing change of schema after user login, following a StackOverFlow.
Description
Im following the stackoverflow solution at:
https://stackoverflow.com/questions/39357367/change-database-schema-during-runtime-based-on-logged-in-user
The spring version im using is: :
: Spring Boot :: (v2.3.3.RELEASE)
I've created the class below. But I have no idea on how to use it properly.
What im trying to achieve is:
Springboot initializes in a default login database URL.
After login, it should use the class below to define which schema it should use based on the UserDetails class.
Im stuck. Im reading every tutorial, book I can find but im stuck. Please helpp