President Xi Jinping is flaunting Beijing’s weapons development and close ties with other autocratic leaders.