Constrain the compression spring's origin axis to the hole axis. Then just
create a user work plane on the spring (offset from an origin work plane) at
the top of the spring (or bottom as needed) & constrain the new plane to
some flat
geometry to set the height. Then constrain another origin plane to
further orient the spring to prevent rotation if needed.
Unfortunately tangent constraint just doesn't seem to work on the spiraled
coil I noticed. Hope this helps.
Gary