This is mostly a note to myself, but maybe this will also help someone else along the way. I have a problem with forgetting to add the annotation @Repository to the top of my Dao classes. When I forget to do this, I ALWAYS get a "Could not autowire" error. Then I clean, rebuild, and republish for like an hour thinking that will solve the problem. Well, guess what?!?! That's not the solution! ADD THE ANNOTATION!
No comments:
Post a Comment