异常描述:
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