Forces
Ideal spring obeys Hooke's law: $$ F = kx = \lambda\Big(\frac xl\Big) $$ where $x$ is the extension, $l$ is the length of the spring, $k$ is the spring constant, and $\lambda$ is constant for a particular type of spring.
If the two surfaces are not moving, static friction is in play, which has a maximum frictional force $$ f_s \leq \mu_s N $$ where $\mu_s$ is the coefficient of static friction, and $N$ is the normal force.
If sliding occurs, dynamic friction is in play, and has a magnitude of $$ f_d = \mu_d N. $$
Usually $\mu_s > \mu_d$.