Chinese President Xi Jinping has said China and Russia have found the right way for neighboring major countries to get along with each other.