#dataformat #endpoint #Jackson #jackson-dataformat-xml #JSON #REST #Spring #Spring Boot #T4SD #Tips 4 Spring Devs #XML

T4SD (Tips 4 Spring Devs): How to get Spring Boot REST endpoints to speak XML

Many of us use JSON almost exclusively now, which is generally a good thing. But what happens when you need to “speak XML” with your Spring Boot REST endpoints? XML support in Spring Boot’s REST endpoints is not enabled by default, but adding it isn’t difficult at all. Simply add the following dependency to your POM (or similar entry to your Gradle build file, if that’s the way you roll) and rebuild: ...

#query method #quick tip #REST #Spring #Spring Data #Spring Data REST #T4SD #Tips 4 Spring Devs

T4SD (Tips 4 Spring Devs): Exposing Query Methods in Spring Data REST

Spring Data REST takes an opinionated approach to exposing Spring Data repositories via REST endpoints, covering the 80-90% use case with a minimum of code and fuss. But did you know that it provides a no-lifting-required mechanism for exposing query methods you define on those repositories as well? Let’s say you create a method like this: Referencing that bit of functionality directly is simple, just append /search/<methodName> to the collection endpoint: ...

#API #Cloud #Cloud Foundry #Internet of Things #IoT #Pivotal #REST #Spring #Spring Boot

Spring Boot for IoT Developers: Getting Started

It often surprises other devs when I suggest that Spring Boot is a perfect addition to the IoT developer’s toolbox. If you’re deep into IoT and have the luxury of another group providing all of your back-end and/or cloud platform code, that’s perfectly understandable. However, if you’re a full-stack developer, by choice or necessity, you need to know this! Grab a chair and a cup of coffee; I think you’ll find this interesting (and useful). ...