D:\java\IdeaProjects\lsqk\base\src\main\java\com\cnmyhr\base\aop\PreAuthorizeAspect.java:17:32 java: 程序包org.springframework.http不存在
时间: 2023-11-06 14:08:06 浏览: 40
这个错误提示是因为你的项目中没有引入 `org.springframework.http` 包,你需要在项目的 pom.xml 文件中添加以下依赖:
```xml
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>5.3.9</version>
</dependency>
```
或者在 Gradle 中添加以下依赖:
```groovy
implementation 'org.springframework:spring-web:5.3.9'
```
相关推荐
![txt](https://img-home.csdnimg.cn/images/20210720083642.png)