zoukankan      html  css  js  c++  java
  • flyway.setBaselineOnMigrate(true);

     org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayWrapper': Invocation of init method failed; nested exception is org.flywaydb.core.api.FlywayException: Found non-empty schema(s) `boss` without metadata table! Use baseline() or set baselineOnMigrate to true to initialize the metadata table. 

            flyway.setBaselineOnMigrate(true);//initOnMigrate

    ERROR Application startup failed - (SpringApplication.java:839) 18:14:29,781 [main]
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'indexController': Unsatisfied dependency expressed through field 'weiXinService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'weiXinService': Unsatisfied dependency expressed through field 'dbManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbManager': Invocation of init method failed; nested exception is java.lang.UnsatisfiedLinkError: Could not load library. Reasons: [no leveldbjni64-1.8 in java.library.path, no leveldbjni-1.8 in java.library.path, no leveldbjni in java.library.path, C:UsersendvAppDataLocalTempleveldbjni-64-1-2446148662175980479.8: Can't find dependent libraries]

    错误应用程序启动失败-(SpRelpApvest.java:839)18:14:29 78[主]
    org.springframework.beans.factory.unsuspeedPendencyException:创建名为“indexController”的bean时出错:通过字段“weixinservice”表示的依赖项不满意;嵌套异常为org.springframework.beans.factory.unsuspeedPendencyException:创建名为“wei”的bean时出错xinservice”:通过字段“dbmanager”表示的依赖项不满足;嵌套异常为org.springframework.beans.factory.beanCreationException:创建名为“dbmanager”的bean时出错:调用init方法失败;嵌套异常为java.lang.unsuspendedlinkError:无法加载库原因:【java.library.path中没有levelbjni64-1.8,java.library.path中没有levelbjni-1.8,java.library.path中没有levelbjni,c:usersendvappdatalocal emplevelbjni-64-1-2446148662175980479.8:找不到依赖库】

    只需要把leveldbjni-win64-1.8.jar导入工程即可(应为在win64下运行的)

    设置项目maven依赖:

    <dependency>

    <groupId>org.fusesource.leveldbjni</groupId>
    <artifactId>leveldbjni-win64</artifactId>
    <version>-master-SNAPSHOT</version>
    </dependency>

    <dependency>
    <groupId>org.fusesource.leveldbjni</groupId>
    <artifactId>leveldbjni</artifactId>
    <version>-master-SNAPSHOT</version>
    </dependency>

    Gradle管理项目,在项目build.gradle的dependencies中添加

    1. compile "org.fusesource.leveldbjni:leveldbjni:1.8"
    2. compile "org.fusesource.leveldbjni:leveldbjni-win64:1.8"
  • 相关阅读:
    20191028 Codeforces Round #534 (Div. 1)
    20191028 牛客网CSP-S Round2019-1
    UVA11464 Even Parity 搜索+递推
    CSP2019-S1 游记
    LG2921 [USACO2008DEC]Trick or Treat on the Farm 内向基环树
    bzoj 2002 Bounce 弹飞绵羊
    快速乘,快速幂,十进制快速幂,矩阵快速幂
    2019牛客暑期多校训练营(第五场) generator 1
    2019牛客暑期多校训练营(第五场) digits 2
    hdu 4714 Tree2cycle
  • 原文地址:https://www.cnblogs.com/endv/p/11332512.html
Copyright © 2011-2022 走看看