• Cannot determine embedded database driver class for database type NONE



    "E:Program FilesJavajdk1.8.0_51injava" -Dspring.output.ansi.enabled=always -Didea.launcher.port=7535 "-Didea.launcher.bin.path=E:Program Files (x86)JetBrainsIntelliJ IDEA 2016.2in" -Dfile.encoding=UTF-8 -classpath "E:Program FilesJavajdk1.8.0_51jrelibcharsets.jar;E:Program FilesJavajdk1.8.0_51jrelibdeploy.jar;E:Program FilesJavajdk1.8.0_51jrelibextaccess-bridge-64.jar;E:Program FilesJavajdk1.8.0_51jrelibextcldrdata.jar;E:Program FilesJavajdk1.8.0_51jrelibextdnsns.jar;E:Program FilesJavajdk1.8.0_51jrelibextjaccess.jar;E:Program FilesJavajdk1.8.0_51jrelibextjfxrt.jar;E:Program FilesJavajdk1.8.0_51jrelibextlocaledata.jar;E:Program FilesJavajdk1.8.0_51jrelibext ashorn.jar;E:Program FilesJavajdk1.8.0_51jrelibextsunec.jar;E:Program FilesJavajdk1.8.0_51jrelibextsunjce_provider.jar;E:Program FilesJavajdk1.8.0_51jrelibextsunmscapi.jar;E:Program FilesJavajdk1.8.0_51jrelibextsunpkcs11.jar;E:Program FilesJavajdk1.8.0_51jrelibextzipfs.jar;E:Program FilesJavajdk1.8.0_51jrelibjavaws.jar;E:Program FilesJavajdk1.8.0_51jrelibjce.jar;E:Program FilesJavajdk1.8.0_51jrelibjfr.jar;E:Program FilesJavajdk1.8.0_51jrelibjfxswt.jar;E:Program FilesJavajdk1.8.0_51jrelibjsse.jar;E:Program FilesJavajdk1.8.0_51jrelibmanagement-agent.jar;E:Program FilesJavajdk1.8.0_51jrelibplugin.jar;E:Program FilesJavajdk1.8.0_51jrelib esources.jar;E:Program FilesJavajdk1.8.0_51jrelib t.jar;F:GitRepositoryHRParentHRWeb argetclasses;F:MavenRepositoryorgspringframeworkootspring-boot-devtools1.5.8.RELEASEspring-boot-devtools-1.5.8.RELEASE.jar;F:MavenRepositoryorgspringframeworkootspring-boot1.5.8.RELEASEspring-boot-1.5.8.RELEASE.jar;F:MavenRepositoryorgspringframeworkspring-context4.3.12.RELEASEspring-context-4.3.12.RELEASE.jar;F:MavenRepositoryorgspringframeworkootspring-boot-autoconfigure1.5.8.RELEASEspring-boot-autoconfigure-1.5.8.RELEASE.jar;F:MavenRepositoryorgspringframeworkootspring-boot-starter-web1.5.8.RELEASEspring-boot-starter-web-1.5.8.RELEASE.jar;F:MavenRepositoryorgspringframeworkootspring-boot-starter1.5.8.RELEASEspring-boot-starter-1.5.8.RELEASE.jar;F:MavenRepositoryorgspringframeworkootspring-boot-starter-logging1.5.8.RELEASEspring-boot-starter-logging-1.5.8.RELEASE.jar;F:MavenRepositorychqoslogbacklogback-classic1.1.11logback-classic-1.1.11.jar;F:MavenRepositorychqoslogbacklogback-core1.1.11logback-core-1.1.11.jar;F:MavenRepositoryorgslf4jjcl-over-slf4j1.7.25jcl-over-slf4j-1.7.25.jar;F:MavenRepositoryorgslf4jjul-to-slf4j1.7.25jul-to-slf4j-1.7.25.jar;F:MavenRepositoryorgslf4jlog4j-over-slf4j1.7.25log4j-over-slf4j-1.7.25.jar;F:MavenRepositoryorgyamlsnakeyaml1.17snakeyaml-1.17.jar;F:MavenRepositoryorgspringframeworkootspring-boot-starter-tomcat1.5.8.RELEASEspring-boot-starter-tomcat-1.5.8.RELEASE.jar;F:MavenRepositoryorgapache omcatembed omcat-embed-core8.5.23 omcat-embed-core-8.5.23.jar;F:MavenRepositoryorgapache omcat omcat-annotations-api8.5.23 omcat-annotations-api-8.5.23.jar;F:MavenRepositoryorgapache omcatembed omcat-embed-el8.5.23 omcat-embed-el-8.5.23.jar;F:MavenRepositoryorgapache omcatembed omcat-embed-websocket8.5.23 omcat-embed-websocket-8.5.23.jar;F:MavenRepositoryorghibernatehibernate-validator5.3.5.Finalhibernate-validator-5.3.5.Final.jar;F:MavenRepositoryjavaxvalidationvalidation-api1.1.0.Finalvalidation-api-1.1.0.Final.jar;F:MavenRepositoryorgjbossloggingjboss-logging3.3.1.Finaljboss-logging-3.3.1.Final.jar;F:MavenRepositorycomfasterxmlclassmate1.3.4classmate-1.3.4.jar;F:MavenRepositorycomfasterxmljacksoncorejackson-databind2.8.10jackson-databind-2.8.10.jar;F:MavenRepositorycomfasterxmljacksoncorejackson-annotations2.8.0jackson-annotations-2.8.0.jar;F:MavenRepositorycomfasterxmljacksoncorejackson-core2.8.10jackson-core-2.8.10.jar;F:MavenRepositoryorgspringframeworkspring-web4.3.12.RELEASEspring-web-4.3.12.RELEASE.jar;F:MavenRepositoryorgspringframeworkspring-beans4.3.12.RELEASEspring-beans-4.3.12.RELEASE.jar;F:MavenRepositoryorgspringframeworkspring-webmvc4.3.12.RELEASEspring-webmvc-4.3.12.RELEASE.jar;F:MavenRepositoryorgspringframeworkspring-expression4.3.12.RELEASEspring-expression-4.3.12.RELEASE.jar;F:MavenRepositorymysqlmysql-connector-java5.1.44mysql-connector-java-5.1.44.jar;F:MavenRepositorycomalibabadruid-spring-boot-starter1.1.3druid-spring-boot-starter-1.1.3.jar;F:MavenRepositorycomalibabadruid1.1.3druid-1.1.3.jar;E:Program FilesJavajdk1.8.0_51jre..libjconsole.jar;E:Program FilesJavajdk1.8.0_51jre..lib ools.jar;F:MavenRepositorycomaomidoumybatis-plus2.1.0mybatis-plus-2.1.0.jar;F:MavenRepositoryorgmybatismybatis-spring1.3.1mybatis-spring-1.3.1.jar;F:MavenRepositoryorgmybatismybatis3.4.4mybatis-3.4.4.jar;F:MavenRepositorycomgithubjsqlparserjsqlparser1.1jsqlparser-1.1.jar;F:MavenRepositoryorgmybatisspringootmybatis-spring-boot-starter1.3.1mybatis-spring-boot-starter-1.3.1.jar;F:MavenRepositoryorgspringframeworkootspring-boot-starter-jdbc1.5.8.RELEASEspring-boot-starter-jdbc-1.5.8.RELEASE.jar;F:MavenRepositoryorgapache omcat omcat-jdbc8.5.23 omcat-jdbc-8.5.23.jar;F:MavenRepositoryorgapache omcat omcat-juli8.5.23 omcat-juli-8.5.23.jar;F:MavenRepositoryorgspringframeworkspring-jdbc4.3.12.RELEASEspring-jdbc-4.3.12.RELEASE.jar;F:MavenRepositoryorgmybatisspringootmybatis-spring-boot-autoconfigure1.3.1mybatis-spring-boot-autoconfigure-1.3.1.jar;F:MavenRepositoryorgapachevelocityvelocity1.7velocity-1.7.jar;F:MavenRepositorycommons-collectionscommons-collections3.2.2commons-collections-3.2.2.jar;F:MavenRepositorycommons-langcommons-lang2.4commons-lang-2.4.jar;F:MavenRepositorycomalibabafastjson1.2.46fastjson-1.2.46.jar;F:GitRepositoryHRParentHRCommon argetclasses;F:MavenRepositoryorgspringframeworkspring-tx4.3.12.RELEASEspring-tx-4.3.12.RELEASE.jar;F:MavenRepositoryiojsonwebtokenjjwt.9.0jjwt-0.9.0.jar;F:MavenRepositoryorgapachecommonscommons-lang33.6commons-lang3-3.6.jar;F:MavenRepositoryorgspringframeworkootspring-boot-starter-aop1.5.8.RELEASEspring-boot-starter-aop-1.5.8.RELEASE.jar;F:MavenRepositoryorgspringframeworkspring-aop4.3.12.RELEASEspring-aop-4.3.12.RELEASE.jar;F:MavenRepositoryorgaspectjaspectjweaver1.8.11aspectjweaver-1.8.11.jar;F:MavenRepositoryorgslf4jslf4j-api1.7.25slf4j-api-1.7.25.jar;F:MavenRepositoryorgspringframeworkspring-core4.3.12.RELEASEspring-core-4.3.12.RELEASE.jar;E:Program Files (x86)JetBrainsIntelliJ IDEA 2016.2libidea_rt.jar" com.intellij.rt.execution.application.AppMain com.hr.web.HrWebApplication 16:55:09.651 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Included patterns for restart : [/mybatis-plus-[w-]+.jar] 16:55:09.653 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Excluded patterns for restart : [/spring-boot-starter/target/classes/, /spring-boot-autoconfigure/target/classes/, /spring-boot-starter-[w-]+/, /spring-boot/target/classes/, /spring-boot-actuator/target/classes/, /spring-boot-devtools/target/classes/] 16:55:09.654 [main] DEBUG org.springframework.boot.devtools.restart.ChangeableUrls - Matching URLs for reloading : [file:.../target/classes/, file:.../target/classes/] . ____ _ __ _ _ /\ / ___'_ __ _ _(_)_ __ __ _ ( ( )\___ | '_ | '_| | '_ / _` | \/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v1.5.8.RELEASE) ......... 2018-03-03 16:55:10.025 INFO 9664 --- [ restartedMain] com.hr.web.HrWebApplication : No active profile set, falling back to default profiles: default ........... Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled. 2018-03-03 16:55:13.582 ERROR 9664 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: Cannot determine embedded database driver class for database type NONE Action: If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active). Process finished with exit code 0

    项目配置:

    问题:

    1.application.yml/banner.txt 中的配置都没有生效

    排查:

    1.查看生成后的包中到底有哪些,新建了一个springboot demo ,生成后的包如下:

    对比上面,发现生成的包有问题

    2.确定问题包生成有问题后,查看pom中的配置

    将该错误配置改为如下配置

  • 相关阅读:
    Svn如何使用,有什么作用?
    Unity脚本基础Day02
    unity设计模式-----责任链模式
    LitJson ---json的创建和解析
    Mesh编程——三角形,多边形,正方体,园形,圆环
    unity基础逻辑题
    unity——UI拖拽实现拼图
    unity:倒计时
    UGUI Toggle的监听事件绑定
    UnityGUI系统之InputField
  • 原文地址:https://www.cnblogs.com/liaojie970/p/8497177.html
Copyright © 2020-2023  润新知