Home > Q&A > body text
怪我咯2017-04-18 09:31:49
The Key class of the Model layer has no annotations added. As a result, the bean cannot be injected, just add it. If it corresponds to the table, write @Entity, if not, write @Component.