The monarch told university students in the northern city of Oviedo that the monarchy had contributed to the longest period of stability and prosperity in democratic Spain .