Proof (second-order condition of convex functions is sufficient)
Fix $\v x,\v y\in\R^n$. By Taylor's theorem, expanding $f$ around $x$ gives $$ \begin{align*} f(\v y) = f(\v x) + \nabla f(\v x)^T (\v y - \v x) + \frac{1}{2}(\v y-\v x)^T \big(\nabla^2 f(\v z)\big) (\v y-\v x) \end{align*} $$ where $\v z$ is a point on the line segment joining $\v x$ and $\v y$.
Since $\nabla^2 f(\v z) \succeq 0$, we have $(\v y-\v x)^T \big(\nabla^2 f(\v z)\big) (\v y-\v x) \geq 0$, so $$ \begin{align*} f(\v y) \geq f(\v x) + \nabla f(\v x)^T (\v y-\v x). \end{align*} $$ The first-order condition is satsified, so $f$ is convex.