使用jhipster构建微服务,在打包启动是报错:liquibase.exception.LockException: Could not acquire ch

阅读更多
报错的信息:

   liquibase.exception.LockException: Could not acquire change log lock.

说明:当微服务构建完成后,在resource中有个文件:
/src/main/resources/config/liquibase/changelog/00000000000000_initial_schema.xml

    将内容更改为如下:

     [code="ja
    xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
    xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd
                        http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">

   
   
   

   

   
       
   


   
   
       
           
               
           

           
               
           

           
           
       


       
           
               
           

           
               
           

           
       

       

                             tableName="jhi_persistent_audit_event"
                     unique="false">
           
           
       


                             tableName="jhi_persistent_audit_evt_data"
                     unique="false">
           
       


                                         baseTableName="jhi_persistent_audit_evt_data"
                                 constraintName="fk_evt_pers_audit_evt_data"
                                 referencedColumnNames="event_id"
                                 referencedTableName="jhi_persistent_audit_event"/>
   


va"]
      
     

更改完后,将数据库中之前新建的表删除,然后重新打包微服务,启动即可!

你可能感兴趣的:(java)