Binding to target org.springframework.boot.autoconfigure.jdbc.DataSourceProperties@46c3a14d failed:


Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.

2018-01-03 10:52:46.766 ERROR 2513 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 


***************************

APPLICATION FAILED TO START

***************************


Description:


Binding to target org.springframework.boot.autoconfigure.jdbc.DataSourceProperties@46c3a14d failed:


    Property: spring.datasource.type

    Value: com.mysql.jdbc.Driver

    Reason: Failed to convert property value of type 'java.lang.String' to required type 'java.lang.Class' for property 'type'; nested exception is java.lang.IllegalArgumentException: Cannot find class [com.mysql.jdbc.Driver]



Action:


Update your application's configuration


错误原因:

配置文件中的 spring.datasource.type 配置错误。

解决方法参考:

Cannot determine embedded database driver class for database type NONE



你可能感兴趣的:(Binding to target org.springframework.boot.autoconfigure.jdbc.DataSourceProperties@46c3a14d failed:)