Bug Spring boot - Liquibase

0

18-04-15 23: 10: 21,452 INFO 9464 --- [restartedMain] o.apache.catalina.core.StandardService: Stopping service [Tomcat] 2018-04-15 23: 10: 21,470 INFO 9464 --- [restartedMain] ConditionEvaluationReportLoggingListener:

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2018-04-15 23: 10: 21,484 ERROR 9464 --- [restartedMain] o.s.boot.SpringApplication: Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration $ LiquibaseConfiguration': Invocation of init method failed; nested exception is java.lang.IllegalStateException: Can not find changelog location: class path resource [db / changelog / db.changelog-master.yaml] (please add changelog or check your Liquibase configuration)     at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization (InitDestroyAnnotationBeanPostProcessor.java:138) ~ [spring-beans-5.0.4.RELEASE.jar: 5.0.4.RELEASE]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization (AbstractAutowireCapableBeanFactory.java:423) ~ [spring-beans-5.0.4.RELEASE.jar: 5.0.4.RELEASE]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean (AbstractAutowireCapableBeanFactory.java:1702) ~ [spring-beans-5.0.4.RELEASE.jar: 5.0.4.RELEASE]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:583) ~ [spring-beans-5.0.4.RELEASE.jar: 5.0.4.RELEASE]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:502) ~ [spring-beans-5.0.4.RELEASE.jar: 5.0.4.RELEASE]

I have this error, could anyone help me?

    
asked by anonymous 16.04.2018 / 04:11

1 answer

0

In Spring boot there is a proclibibass configuration that informs the location of your changelog file, considering that the "db" folder is in the "resources" folder of the project. Here's an example:

liquibase.change-log = classpath:db/changelog.xml
    
08.05.2018 / 22:21