Spring Cosmos数据库响应映射在spring boot中

我正在尝试Spring Boot Rest API从Azure Cosmos DB获取文档数据 . 我已经按照mircosoft论坛中提到的步骤进行了操作 .

https://docs.microsoft.com/en-us/java/azure/spring-framework/configure-spring-boot-starter-java-app-with-cosmos-db

但我收到以下错误:

2018-01-10 10:30:48.774[0;39m [32m INFO[0;39m [35m35312[0;39m [2m---[0;39m [2m[nio-8080-exec-1][0;39m [36mc.m.a.d.internal.ServiceJNIWrapper      [0;39m [2m:[0;39m ServiceJNI has loaded.
[2m2018-01-10 10:30:49.752[0;39m [31mERROR[0;39m [35m35312[0;39m [2m---[0;39m [2m[nio-8080-exec-1][0;39m [36mc.o.c.l.r.jersey.CommonExceptionMapper  [0;39m [2m:[0;39m java.lang.IllegalStateException: java.lang.reflect.InvocationTargetException

java.lang.RuntimeException: java.lang.IllegalStateException: java.lang.reflect.InvocationTargetException
    at org.springframework.data.mapping.model.ClassGeneratingPropertyAccessorFactory.createAccessorClass(ClassGeneratingPropertyAccessorFactory.java:170) ~[spring-data-commons-1.13.3.RELEASE.jar:na]
    at org.springframework.data.mapping.model.ClassGeneratingPropertyAccessorFactory.potentiallyCreateAndRegisterPersistentPropertyAccessorClass(ClassGeneratingPropertyAccessorFactory.java:154) ~[spring-data-commons-1.13.3.RELEASE.jar:na]
    at org.springframework.data.mapping.model.ClassGeneratingPropertyAccessorFactory.getPropertyAccessor(ClassGeneratingPropertyAccessorFactory.java:80) ~[spring-data-commons-1.13.3.RELEASE.jar:na]
    at org.springframework.data.mapping.model.BasicPersistentEntity.getPropertyAccessor(BasicPersistentEntity.java:425) ~[spring-data-commons-1.13.3.RELEASE.jar:na]
    at com.microsoft.azure.spring.data.documentdb.core.convert.MappingDocumentDbConverter.getPropertyAccessor(MappingDocumentDbConverter.java:136) ~[spring-data-documentdb-0.1.2.jar:na]
    at com.microsoft.azure.spring.data.documentdb.core.convert.MappingDocumentDbConverter.writeInternal(MappingDocumentDbConverter.java:99) ~[spring-data-documentdb-0.1.2.jar:na]
    at com.microsoft.azure.spring.data.documentdb.core.convert.MappingDocumentDbConverter.write(MappingDocumentDbConverter.java:85) ~[spring-data-documentdb-0.1.2.jar:na]
    at com.microsoft.azure.spring.data.documentdb.core.DocumentDbTemplate.insert(DocumentDbTemplate.java:71) ~[spring-data-documentdb-0.1.2.jar:na]
    at com.microsoft.azure.spring.data.documentdb.repository.support.SimpleDocumentDbRepository.save(SimpleDocumentDbRepository.java:56) ~[spring-data-documentdb-0.1.2.jar:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_60]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_60]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_60]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_60]

请有人帮忙吗?提前致谢 .

回答(0)