BEIJING - China's economy accelerated for the first time in seven years in 2017, growing 6.9 percent from the previous year, official data showed Thursday, boding well for President Xi Jinping's drive to achieve the goal of building a "moderately prosperous society."