解决Spring Boot不能通过实体类生成数据表问题 1、在pom.xml中添加依赖 2、properties或者yml文件添加配置 3、实体类添加注解@Entity 1、在pom.xml中添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <dependency> <groupId>mysql