(It's always up to you to choose to accept an answer or not.)
If an answer is at least a partial answer that has helped you overcome part of your problem, it's often worth upvoting it. If you need a little bit more help, write a comment. It is quite frequent for a couple of types of errors to be closely related, so asking whether the second error might be a side effect or closely related to the first fix is appropriate.
However, there's a point where the answerer might just say that it's a completely different problem. Often, with a little more investigation, you may find subsequent errors might come from a completely different problem.
Let's just say that your initial error is "Could not load JDBC driver class [com.mysql.jdbc.Driver]", and you get an answer telling you to add that driver to the classpath.
You could quite easily have a second error immediately after fixing this that says something along the lines of "no such database", "no such table", "invalid syntax in SQL query".
After a quick comment, the answer could just say something like "check your connection parameters, just in case", but expecting the answerer to know what your table structure or which SQL queries you're making would be quite unreasonable within the context of the initial question.
Breaking your problem into sub-problems (and realising when they are sub-problems) is not just good for asking question on Stack Overflow, it's also a good approach to problem solving in general.
If you're developing an application using tools like Spring and related frameworks, you're likely to encounter a number of problems that may or may not be directly related. It's not a criticism of Spring, but the fact is that you're visibly trying to make multiple things to work together. Stack Overflow is generally not the right place to ask about the behaviour of a large piece of code without trying to isolate the problem.
What not to do is to unaccept and re-accept the answer multiple times, asking for new little comments every time. This will indeed catch the attention of the answerer, but not in a good way.