China says it is ready to take measures to boost consumption momentum and avoid an economic slowdown in the second half of the year.