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:\Users\endv\AppData\Local\Temp\leveldbjni-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:\users\endv\appdata\local\temp\levelbjni-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"

最新文章

  1. [ActionScript 3.0] 通过内联函数对addFrameScript方法传递参数
  2. Hibernate各种主键生成器策略与配置详解(转载)
  3. SVN在团队项目中的使用技巧:[2]Tag操作
  4. 批量生成卡号密码的php程序
  5. .Net之美读书系列(一):委托与事件
  6. PAT (Basic Level) 1013. 数素数 (20)
  7. ubuntu14.04上面安装ia32-libs
  8. Java继承时的初始化顺序
  9. nginx+uwsgi+django开发环境搭建
  10. 10.3-uC/OS-III内部任务管理(TCB)
  11. BZOJ 1977[BeiJing2010组队]次小生成树 Tree - 生成树
  12. 〖Android〗CyanogenMod同步错误的解决
  13. js面向对象案例 贪吃蛇
  14. MySQL 5.7半同步复制after sync和after commit详解【转】
  15. DS作业01--日期抽象数据类型设计与实现
  16. Effective C++ 条款26
  17. Delphi XE5通过WebService开发Web服务端和手机客户端
  18. APUE学习笔记——6.10 时间与时间例程 time_t
  19. vue中cssModules理解可以用于加密和避免重复使用
  20. 检验指定路径的文件是否存在ftp服务器中

热门文章

  1. brew安装mongodb报错Error: No available formula with the name &#39;mongodb&#39;
  2. Alipay支付宝调用错误:Call to undefined function openssl_sign()
  3. django+sqlite3进行web开发(一)
  4. 使用ftp搭建yum仓库
  5. POJ2239-Selecting Courses-(匈牙利算法)
  6. JQuery校验时间大小
  7. es4x 引用外部jar 包以及集成typescrip
  8. ABP 菜单和权限
  9. 请用正则实现String.trim()
  10. 第02组 Alpha冲刺(2/4)