Why did Confucianism flourish in the era of Emperor Wu of Han Dynasty?

In the era of Emperor Wu of the Han Dynasty, the feudal dynasty of the Western Han Dynasty entered its heyday. Adapting to the development of politics and economy, ideology and culture are also changing and developing. Liang Wudi acceded to the throne, that is, the words of Shen, Shang, Han Fei, Su Qin and Zhang Yi were abolished, and a hundred schools of thought contended and Confucianism was the only one. Under the domination of Confucianism, Emperor Wudi "widely recruited talented people in the world, not waiting for the second place", and because of the suggestions of Dong Zhongshu and Gong, he rejuvenated the country, set up doctors in the Five Classics and set up doctoral disciples, and Confucianism flourished and completed the unity of thoughts. Since then, a hundred schools of thought have contended, and ideas have been fixed on a statue, which has seriously hampered the development of academic culture.