Error creating bean with name 'liquibase' defined in class path resource
时间: 2023-10-01 22:04:58 浏览: 243
中提到了一个错误信息,Error creating bean with name 'liquibase' defined in class path resource。中也提到了这个错误,并给出了解决步骤。这个错误是由于使用了Liquibase,在初始化时出现了问题。根据中的解决步骤,你可以运行一条SQL语句来查看哪台机器锁住了数据库,并使用另一条SQL语句来解锁。具体的步骤如下:
1. 运行以下SQL语句查看哪个机器锁住了数据库:
```
USE [Database Name]
SELECT * FROM DATABASECHANGELOGLOCK;
```
2. 使用以下SQL语句来解锁:
```
UPDATE DATABASECHANGELOGLOCK SET locked=0, lockgranted=null, lockedby=null WHERE id=1;
```
通过执行上述步骤,你应该能够解决Error creating bean with name 'liquibase' defined in class path resource的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [spring框架进行简单的增加操作出现的错误,解决方法](https://download.csdn.net/download/IDCSDNS/85772683)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [Liquibase学习 - 问题解决:启动报错](https://blog.csdn.net/weixin_39651356/article/details/125710531)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [LiquiBase被锁,报错Error creating bean with name 'liquibase' defined in class path resource ....](https://blog.csdn.net/qq_35503293/article/details/104154696)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文