Cannot resolve symbol 'NotBlank
时间: 2023-10-20 16:00:18 浏览: 177
解决:cannot resolve unit name 问题(delphi2007-delphi2010)
3星 · 编辑精心推荐
引用中提到,如果在pom.xml中找不到parent节点,可以手动添加以下配置来解决该问题:
```
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>2.4.5</version>
</parent>
```
引用中提到,如果遇到爆红错误,可以在pom.xml中添加以下配置来解决该问题:
```
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
```
至于你提到的错误`Cannot resolve symbol 'NotBlank'`,它是与AOP操作(使用AspectJ注解)相关的错误。这种错误通常是由于缺少相应的依赖库引起的。你可能需要在pom.xml中添加相应的依赖,例如`spring-boot-starter-aop`:
```
<dependency>
<groupId>org.springframework.boot</groupId>
<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [第99天学习打卡(SpringBoot 原理初探 启动器 主程序 获取候选位置 RUN SpringBoot配置)](https://blog.csdn.net/doudoutj/article/details/115800189)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [Spring5错误记录](https://blog.csdn.net/Stupid_fish_hou/article/details/112338627)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文