idea中如何添加依赖呢,在idea中直接创建的maven项目,但依赖处总是爆红,爆红处如下,请大家帮忙看一下

idea中如何添加依赖呢,在idea中直接创建的maven项目,但依赖处总是爆红,爆红处如下,请大家帮忙看一下

外面少了一层dependencies
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
</dependency>
</dependencies>