spring create bean only if another bean does not exists

OpenAI API failed. Please try your prompt again.