how did pasteur solve spallanzanis problem limiting exposure air

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