GithubHelp home page GithubHelp logo

Comments (4)

itineric avatar itineric commented on July 21, 2024 1

you can do that with only one step:
rename your file reflection-config.json to reflect-config.json and place it inside src/main/resources/META-INF/native-image/<group id>/<artifact id> it will be picked up automatically.

It you are using Spring, you can also use ReflectionHints instead.

My point here is that this reflection config could be added directly to the logbook lib then no extra (external) configuration is required.

from logbook.

jordanorc avatar jordanorc commented on July 21, 2024

In my case I was able to solve the problem in a Spring Boot application adding the following content into the file: src/main/resources/META-INF/native-image/org.zalando/logbook/reflect-config.json:

[
    {
      "name" : "org.zalando.logbook.json.JsonHttpLogFormatter$JsonBody",
      "allPublicMethods" : true
    }
]

Thanks @itineric for the tip.

from logbook.

jordanorc avatar jordanorc commented on July 21, 2024

@itineric, thanks for the tip. I updated the answer. My goal was to help those who are facing same problem, while the solution is not added directly to the logbook.

from logbook.

kasmarian avatar kasmarian commented on July 21, 2024

Looks like a nice addition to logbook. @itineric would you be interested in contributing to the library to add the necessary changes?

from logbook.

Related Issues (20)

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.