Spotify, like many other apps, is not officially available in China. However, some reports suggest people are using Spotify and listening to foreign-based artists in China with the help of a VPN.
If you do have a Spotify account set up for streaming songs on Spotify elsewhere in the world, then you should be able to log into it when abroad, too, assuming your VPN is activated.