Spring cloud 问题 [2]

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u014677702/article/details/86331431

异常描述:

Error creating bean with name 'org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration$LiquibaseConfiguration': Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cannot find changelog location: class path resource [db/changelog/db.changelog-master.yaml] (please add changelog or check your Liquibase configuration)

解决方案:添加

  liquibase:
    change-log: classpath:db/liquibase/master.xml

-------------------------------------------------------------------------------------------------------------------

spring:
  dbType: oracle
  datasource:
    driver-class-name: oracle.jdbc.OracleDriver
    jdbcUrl: jdbc:oracle:thin:@localhost:1521/orcl
    username: hcf_base
    password: handhand
    type: com.zaxxer.hikari.HikariDataSource
  liquibase:
    change-log: classpath:db/liquibase/master.xml
  redis:
    host: localhost
    port: 6379
  cloud:
    bus:
      enabled: false
  cache:
    cache-names: HCF_TOKEN,HCF_USER
    type: caffeine

猜你喜欢

转载自blog.csdn.net/u014677702/article/details/86331431