@配置注释无法解决。

问题描述 投票:0回答:3


我的依赖性有什么问题?我是春季和Maven项目的新手。 org.springframework.context.annotation.configuration即使存在org.springframework.context.antext.antotation.anteft.configuration。

您需要弹簧依赖性。 spring提供了一份材料清单(BOM),使所有这些都变得更加容易。您可以在

org.springframework:spring-framework-bom
java spring maven spring-mvc
3个回答
2
投票

您需要添加此依赖项 <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>4.3.0.RELEASE</version> </dependency>


1
投票

<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>
您需要添加此

0
投票

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.