其他分享
首页 > 其他分享> > @SpringBootTest 注解报红解决办法

@SpringBootTest 注解报红解决办法

作者:互联网

打注解@SpringBootTest的时候不会出现提示
在这里插入图片描述
但是又导入了

 <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
</dependency>

这个开发场景,于是我想应该会有test的场景依赖把

    <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
</dependency>

在这里插入图片描述

标签:spring,boot,springframework,报红,SpringBootTest,org,test,注解
来源: https://blog.csdn.net/qq_39759664/article/details/113699827