How to simulate a spring

Such as title. I want to simulate a linear spring. I built a linear joint, and give the limit is 0 to 0, but a limit stiffness. It did not work.

please see if this doc is helpful for you: https://docs.nvidia.com/gameworks/content/gameworkslibrary/physx/guide/Manual/Articulations.html