In classical conditioning:
Spontaneous recovery: is that the conditioned response SEEMS to have extinguished during a rest period (where the CS is not presented) however after this rest period (when the CS is presented) the Conditioned response returns again or is 'spontaneously recovered'; however the CR now is not as strong as it was the first time (during the acquisition stage)
Stimulus generalisation: is when you perceive similar stimuli to the CS (e.g. the bell in pavlov's experiment might sound similar to a doorbell) so that these 'similar stimuli' (that is, the doorbell) could actually produce the CR (salivating upon hearing bell)- but *not to the same intensity* as the original bell that Pavlov had conditioned the dog to
Stimulus discrimination: is when 'similar stimuli' to the original CS (bell) are discriminated against and do not produce the CR. So in this case, if a dog heard a doorbell it wouldn't salivate at all because of stimulus discrimination. Also, for e.g. If someone ate oysters and fell sick, they might only show signs of nausea when presented with oysters, but not when presented with similar seafood such as prawns or something LOL.
Operant conditioning:
Spontaneous Recovery: is when the association between the action and the consequence declines and seems to have been extinguished (during a rest period where the consequence of the action is not present)..however after this rest period, when the action is committed, the consequence re-appears and so the association between the action & consequence returns again and is recovered.
Stimulus generalisation: is when the stimulus that is associated with the consequence of an action is generalised so that similar stimuli are seen to have similar consequences.. e.g. A child who tries to pat a dog (action) but then gets bitten by a dog (consequence) may steer clear of ALL dogs as he/she does not want to be bitten again.
Stimulus discrimination: is when the stimulus that causes a consequence (of an action) is only caused by that particular stimulus and no other similar stimulus. E.g. A child who suffers a scraped knee (consequence) after trying to ride a rusted old bike (action) may not feel wary or cautious about riding on a similar thing such as a scooter
Don't know if this is accurate/clear enough though so just check over your book as well