Can I enroll in a Chinese language course at a university in Shanghai using a spouse visa?
english.shanghai.gov.cn
Q: Can I enroll in a Chinese language course at a university in Shanghai using a spouse visa?
A: No, you cannot enroll in Chinese language courses at universities in Shanghai using a spouse visa. Universities are not allowed to admit foreign nationals who have entered China on short-term visas that are not study-related.
To study in Shanghai, you must first apply directly to a university for admission, and once accepted, obtain an X1 or X2 visa before entering China.
Source: Shanghai Municipal Commission of Education