一、java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>eclipselink</artifactId>
<version>2.7.0</version>
</dependency>
二、org.springframework.beans.factory.BeanCreationException:
在pom.xml中将spring-boot-paraent改成2.1.7
三、mysql驱动可删除版本限制。
driver-class-name: com.mysql.jdbc.Driver。
注意区分application-dev.yml和application-prod.yml。