Fixing build errors with Spring