How did pasteur solve spallanzanis problem of limiting exposure to air?

How did pasteur solve spallanzanis problem of limiting exposure to air?