spring-boot-autoconfigure误引入spring-boot-starter-data-jpa而导致数据源初始化异常
一、现状描述某个Grade类引入了jpa的注解:importjavax.persistence.Column;importjavax.persistence.Embeddable;/***年级*/@EmbeddablepublicclassGrade{@Column(name="code")privateintcode;}并且pom.xml中引入该jar包:spring-boot-starter-