Semisimple implies zero-dimensional

Verbal statement
If a commutative unital ring is semisimple (i.e. its global dimension is zero, or equivalently, every module over it is semisimple) then it is zero-dimensional: every prime ideal in it is maximal.