2017-05-30 1 views
0

ジオばねデータMongoのでオブジェクトを更新しようとすると、FF例外スプリングデータMongoのは、B/Cなしプロパティタイプの地理データを保存することはできません

org.springframework.data.mapping.context.InvalidPersistentPropertyPath: No property type found on org.springframework.data.mongodb.core.geo.GeoJsonGeometryCollection!

をスローする場合、例えばオブジェクト構造は次のようであるが見つかりまし

class Location{ 
    .... 
    @GeoSpatialIndexed(type = GeoSpatialIndexType.GEO_2DSPHERE) 
    GeoJsonGeometryCollection geomerty 
} 

リポジトリ

interface LocationRepository extends MongoRepository<Location, String> { 

} 

メトを保存(更新時に呼び出された)D

//the exception is thrown here 
locationRepository.save(updatedLocation) 

私はタイプフィールドを追加していない、それは、GeoJsonGeometryCollection最速で追加されます。

どのような回避策も歓迎します。

答えて

0

私は春のブートバージョンを1.3から1.4にアップグレードしたときに作業を開始しました

関連する問題