导入org.springframework.data无法在gradle中解析

CandleCoder

我刷新了gradle项目,但出现了以下错误:“导入org.springframework.data无法解析”

以下是一些它不理解的导入

import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.ScriptOperations;
import org.springframework.data.mongodb.core.query.BasicQuery;
import org.springframework.data.mongodb.core.script.ExecutableMongoScript;
import static org.springframework.data.mongodb.core.query.Criteria.where;
import static org.springframework.data.mongodb.core.query.Query.query;

还有更多无法解决的进口。

请给我任何解决此问题的建议。

提前致谢。

CandleCoder

build.gradle文件中添加了一个依赖项,如下所示:

org.springframework.data:spring-data-mongodb:1.7.2.RELEASE

这解决了我的问题。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

“导入org.springframework无法解析。”

导入org.springframework.security无法解析

导入org.springframework.boot.autoconfigure.web.ErrorAttributes无法解析

导入org.springframework.web无法解析。蚀

无法导入org.springframework.data.rest.webmvc.ResourceNotFoundException;

无法导入org.springframework.test.context.ActiveProfiles;

无法导入 org.springframework.web.multipart.MultipartFile;

org.springframework无法在karaf中解析

导入org.springframework.test.context.junit4.SpringJUnit4ClassRunner无法解析

无法导入 org.springframework.web.bind.annotation.RestController;不能使用@Restcontroller

替换导入org.springframework.test.context.transaction.TransactionConfiguration; 在Spring Test 4.3.1版本中?

为什么org.springframework.boot不能导入,而org.springframework.web可以导入?

org.springframework.batch.item.excel.poi.PoiItemReader无法解析

import org.springframework.web.bind.annotation.DeleteMapping 无法解析

无法解析org.springframework.context.support.GenericApplicationContext类型

org.springframework.data.redis.serializer.SerializationException

org.springframework.data.cassandra.CassandraUncategorizedException

无法解析 org.springframework.data.repository.Repository 类型。它是从所需的 .class 文件间接引用的

org.springframework.data.domain.PageImpl无法转换为

org.springframework.beans.BeanInstantiationException:无法实例化[org.springframework.ui.Model]:指定的类是接口

org.springframework.web.multipart.commons.CommonsMultipartFile无法转换为org.springframework.web.multipart.MultipartFile

Gradle无法解析org.springframework.boot:spring-boot-gradle-plugin:1.4.2.RELEASE(repo1.maven.org:Nome o servizio sconosciuto)

无法解析org.springframework.data.repository.query.QueryByExampleExecutor类型。从所需的.class文件间接引用它

无法导入springframework.security.extensions并找到saml()方法

Spring + Hibernate + Gradle-> org.springframework.beans.factory.BeanCreationException

无法读取HTTP消息:org.springframework.http.converter.HttpMessageNotReadableException:JSON解析错误:无法构造实例

org.springframework.core.convert.ConversionFailedException:无法从类型转换

无法自动连线org.springframework.mail.javamail.JavaMailSender

GridFSDBFile无法转换为org.springframework.web.multipart.MultipartFile