The stress and strain on the surfaces of a rolling bearing has an important significance in bearing lifespan estimate, fault analysis, and stiffness calculation. Aimed at the contact problem of a deep groove ball bearing based on ANSYS, this paper mainly discusses three technologies, viz., parameterized modeling technology, division technology, and meshing technology, to provide a new method for setting the contact parameters in the process of finite-element analysis. The result shows that the method proposed in this paper is practicable, only with a small error relative to the Hertzian theory.