究其最终原因为:Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method ‘masterDataSource’ threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/log4j/Logger
解决办法
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>