Did not import spring core, maybe this was the problem....