I am wondering how to make sure spring configuration file is loaded only once. Any setting to achieve this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The easiest way would be configure some kind of bean with an static conter variable that count how often it is initzalized.
If this counter is more then zero if the bean is created, then this constrain it volated and an exception should be thorwn.