The present disclosure concerns a digital corneal crosslinking technology for adjusting the corneal curvature, comprising the following steps: administering in drops a composition comprising a photoinitiator compound to the corneal stromal of the subject, locally irradiating the corneal by utilizing digital micromirror device controlled by computer. The corneal curvature can be adjusted totally or locally. The invention also discloses an apparatus for the digital corneal crosslinking. The method and apparatus is minimum invasive and can be used to accurately and efficiently adjust the corneal curvature.