druid-spring-boot-starter依赖爆红
时间: 2023-08-21 13:06:19 浏览: 241
druid-spring-boot-starter依赖在导入时可能会出现爆红问题。解决这个问题的方法有多种。一种方法是刷新一下maven,红线会消失。具体操作是在pom.xml文件中添加如下依赖:
```
<!-- Druid连接池 -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.1.10</version>
</dependency>
```
然后刷新maven,红线就会消失。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [springboot整合jdbc时自动注入(@Autowired)下的dataSource下面爆红线](https://blog.csdn.net/Hello_Word_ER/article/details/126042502)[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: 50%"]
- *2* [解决druid-spring-boot-starter爆红问题](https://blog.csdn.net/qq_45937537/article/details/124981045)[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: 50%"]
[ .reference_list ]
阅读全文