Microbiota stimulation generates LCMV-specific memory CD8+ T cells in SPF mice and determines their TCR repertoire during LCMV infection.