Coder Social home page Coder Social logo

datarest-1253's Introduction

Spring-Data-REST PUT is Broken with DynamoDB

This project uses the neat Spring-Data-DynamoDB project.

Note that PUT operations work well with Spring Boot 1.5.x (Spring-Data-REST 2).

I've traced through both versions side-by-side, and for whatever reason, Spring Data REST tries to convert the primary key using a hard-coded ConversionService (this is at PersistentEntityResourceHandlerMethodArgumentResolver:68).

The version of Spring-Data-REST used in Spring Boot 1.5.x instead used a pathway that used the fully-fledged converter subject to the Spring Data REST configuration (please see RestConfig in this project for where I register this converter).

How-to-run

I am using the embedded DynamoDB for this project. It requires SQLite libraries to be available in a known spot. The Gradle test task will copy these to the build output directory from the test dependencies configuration. This means that even when running these tests from, say, IntelliJ, you'll need to manually execute the test task first, before the application will come up.

I have a test (SdrPutIsBrokeApplicationTests::put_is_broken) that illustrates this problem.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.