我的依赖性有什么问题?我是春季和Maven项目的新手。 org.springframework.context.annotation.configuration即使存在org.springframework.context.antext.antotation.anteft.configuration。
您需要弹簧依赖性。 spring提供了一份材料清单(BOM),使所有这些都变得更加容易。您可以在
org.springframework:spring-framework-bom<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>${spring-boot.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>${spring-boot.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>RELEASE</version>
<scope>compile</scope>
</dependency>
您需要添加此