I work with Spring in the Swing application, the application is divided into two main parts:
1. Authorization
2. Application
The authorization and the application are loaded in the same Spring context, but the problem is that the loading of the application's bins must be initialized after authorization, since the authorization is used to get the user id.
How to do it correctly so that the authorization is loaded first, the user is authorized, and then the main application is loaded in the same context.
Or use different contexts?
Thank you in advance.