Here we have a great article from Minxin Pei at The Diplomat about the reality of Chinese foreign policy:
What does this dictator complex tell us about Chinese foreign policy?
The most obvious answer is that, instead of being non-ideological, Chinese foreign policy actually is quite ideological. As can be seen from recent events, even in situations where supporting dictatorships hurts Chinese interests, Beijing has chosen to side with these international outcasts. This ideological bias stems from the nature of China’s domestic political regime – a one-party state. The ruling Chinese Communist Party believes that its greatest ideological threat is posed by the liberal democracies in the West. Even as China benefits from the West-led international economic system, the Communist Party has never let down its guard against the democratic West.
A foreign policy corollary of this belief is that China needs allies – particularly of the authoritarian variety – in the developing world to counter the West. Dictators are easier to deal with, from Beijing’s point of view, simply because China knows very well how to do business with rulers unconstrained by the rule of law, civil society, and opposition parties. The fact that such dictators are ostracized by the international community is, then, no cause for concern. On the contrary, their isolation makes them all the more dependent on China.
The trouble with such thinking is that it isn’t true because coddling dictators hasn’t actually served Chinese interests.
Isolated dictators may be weak, but they are tough customers and troublemakers. North Korea is perhaps the best example. The Kim Jong-il regime, the most isolated in the world, has given his Chinese patrons enormous grief over his nuclear programme and aggression against South Korea. Gaddafi, while in power, repeatedly blocked the Chinese state-owned oil giant, CNPC, from purchasing oil assets in Libya. Gaddafi committed the ultimate sin against China by hosting the Taiwanese president, an ardent pro-independence advocate, in 2006. China may keep scores against its enemies, but apparently cuts its autocratic clients plenty of slack.
From a purely realpolitik perspective, Chinese fears of new democracies in developing countries are grossly exaggerated. Most new democracies are no stooges of the West. In fact, their foreign policy has been exceptionally pragmatic. Take Brazil and Indonesia, for example. Both are success stories in making the transition from dictatorship to democracy. Both have shown strong independence in their foreign policy. Both enjoy good relations with China.
At the same time, some of the autocratic regimes surrounding China will pose the most serious threats to Chinese security. Russia is one possibility. The authoritarian Vladimir Putin regime not only distrusts China, but has taken steps to harm China’s national and energy security. It has repeatedly failed to honour its pledge to increase its energy exports to China and has sold Vietnam advanced jetfighters and submarines that can be deployed against the Chinese military in a potential conflict in the South China Sea. Vietnam, another one-party dictatorship, is most likely to get into a fire fight with China over territorial disputes in the South China Sea. As for North Korea, its Beijing-fed ruling elites, whenever possible, barely conceal their hostility to their patrons and, during the now-defunct Six Party Talks, repeatedly betrayed and embarrassed Beijing with their double-dealing and duplicity.