China's foreign trade in 2012 expanded 6.2 percent year-on-year to $3.867 trillion, missing the government's 10-percent annual target.