老师,请问我idea导入这里资料的源文件,为什么有这些错误

来源:2-1 环境准备

smiling233_

2020-07-06 16:26:07

http://img.mukewang.com/climg/5f02e01c096c7b0215170988.jpg

写回答

2回答

好帮手慕阿莹

2020-07-06

同学你好

http://img.mukewang.com/climg/5f02efe0093f560417610494.jpg

看一下这个maven仓库配置的地址是你本地的地址吗?

2、刷新 一下试试

http://img.mukewang.com/climg/5f02f1eb0962672003050200.jpg

3、同学看看,是否缺少引入呢?

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 <modelVersion>4.0.0</modelVersion>
 <groupId>com.imooc</groupId>
 <artifactId>spring_aspect</artifactId>
 <packaging>war</packaging>
 <version>1.0-SNAPSHOT</version>
 <name>spring_aspect Maven Webapp</name>
 <url>http://maven.apache.org</url>
 <dependencies>
   <dependency>
     <groupId>junit</groupId>
     <artifactId>junit</artifactId>
     <version>4.12</version>
   </dependency>
   <!--引入Spring的基本开发包-->
   <dependency>
     <groupId>org.springframework</groupId>
     <artifactId>spring-core</artifactId>
     <version>4.2.4.RELEASE</version>
   </dependency>
   <dependency>
     <groupId>org.springframework</groupId>
     <artifactId>spring-context</artifactId>
     <version>4.2.4.RELEASE</version>
   </dependency>
   <dependency>
     <groupId>org.springframework</groupId>
     <artifactId>spring-beans</artifactId>
     <version>4.2.4.RELEASE</version>
   </dependency>
   <dependency>
     <groupId>org.springframework</groupId>
     <artifactId>spring-expression</artifactId>
     <version>4.2.4.RELEASE</version>
   </dependency>

   <dependency>
     <groupId>aopalliance</groupId>
     <artifactId>aopalliance</artifactId>
     <version>1.0</version>
   </dependency>
   <dependency>
     <groupId>org.springframework</groupId>
     <artifactId>spring-aop</artifactId>
     <version>4.2.4.RELEASE</version>
   </dependency>

   <dependency>
     <groupId>org.aspectj</groupId>
     <artifactId>aspectjweaver</artifactId>
     <version>1.8.9</version>
   </dependency>
   <dependency>
     <groupId>org.springframework</groupId>
     <artifactId>spring-aspects</artifactId>
     <version>4.2.4.RELEASE</version>
   </dependency>

   <dependency>
     <groupId>org.springframework</groupId>
     <artifactId>spring-test</artifactId>
     <version>4.2.4.RELEASE</version>
   </dependency>
 </dependencies>
 <build>
   <finalName>spring_aspect</finalName>
 </build>
</project>

祝学习愉快。

0

好帮手慕阿莹

2020-07-06

同学你好

应该是同学的jar包还没有下载完

http://img.mukewang.com/climg/5f02e83509b6910604650296.jpg

同学看看是否idea右下角有蓝色的进度条在下载呢?如果有,说明jar包正在下载,还没有下载完

完整的jar包列表如上。

如果我的回答解决了你的疑惑,请采纳!祝学习愉快!

0
hmiling233_
h 确实是jar包不完整,但是,没有下载的进度条,我自己重新创建一个Maven工程的时候,下载jar包也是会不完整,不知道为什么
h020-07-06
共1条回复

0 学习 · 8263 问题

查看课程