No identifier specified for entity: com.example.demo.entity.User
error content is as follows:
because JPA lacks @id
Solution:
add the content as shown in the figure:
import javax.persistence.Id;
@id
Just run it again.
There are many fan-exclusive files, tutorials and source codes in the personal files