Component issue with Vaadin Flow tutorial. Unit and Integration Chapter.

I’m going through the tutorial and https://vaadin.com/docs/latest/tutorial/unit-and-integration-testing/#creating-and-running-integration-tests-for-more-advanced-ui-logic, where you have to add the Component annotation to the ListView class, there is conflict between the org.springframework.stereotype.Component import and the getToolbar() method which returns the com.vaadin.flow.component.Component. Any Ideas how to get around this?

Use @SpringComponent instead.

Thank you. That worked.