What do you think is the problem? My xml is right, annotations are included… It seems everything should work properly, but the context for some reason doesn’t have the bean I want (I checked it with the getBeanNamesForType()
method, and it indeed doesn’t have it). No typos in the file name. ClassPathXmlApplicationContext
should be the right context type
Please provide the code in text format by
copy pasting it, then Ctrl + E to convert it into Preformatted text, and I’ll be able to provide you with some solutions. thank you.