During which dynasty did the teachings of Confucius become important in order to hold a government job?

**********