Marriage during college conforms to the law.
According to Article 5 of China's Marriage Law, marriage must be completely voluntary, and neither party is allowed to force the other party or any third party to interfere.
Article 6. The age of marriage shall not be earlier than 22 for men and 20 for women. Late marriage and late childbirth should be encouraged.