當我嘗試通過啓動Liquibase那2個文件:liquibase.exception.ChangeLogParseException:錯誤讀取遷移文件:找到的匹配mychanges.xml
JdbcConnection liquibaseConnection = new JdbcConnection(connection);
Liquibase liquibase = new Liquibase("mychanges.xml",
new ClassLoaderResourceAccessor(),liquibaseConnection);
liquibase.update("dev");
當要更新我得到這個例外
liquibase.exception.ChangeLogParseException: Error Reading Migration File: Found 2 files that match mychanges.xml
而且是造成:
Caused by: java.io.IOException: Found 2 files that match mychanges.xml
這似乎奇怪,因爲當我在看war
文件它只包含一個mychanges.xml
我試着重命名它,並將其移動到另一個位置。
我不明白爲什麼它給了我這個除外。 plees幫助