#Dapper #java #Sleuth #span #Spring #Spring Boot #Spring Cloud #Spring Cloud Sleuth #Spring Framework #trace #tracing #Zipkin

Getting up & running quickly with Spring Cloud Sleuth

As you begin to divide conglomerate functionality into discrete, decoupled microservices, you introduce a number of opportunities and challenges into your system(s). The opportunities are often well-known, including (and especially!) development velocity, fidelity/fit (functionality matches requirements), scalability, and a host of other “ilities”. Challenges also exist of course, including the question of how to gain visibility into end-to-end interactions involving multiple microservices across process and network boundaries. Spring Cloud Sleuth provides a lightweight, configurable, and easy way to begin capturing trace information within your distributed system. ...

#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: ...

#content type #filtering #GetMapping #java #request header #request header filtering #RequestMapping #Spring #Spring Boot #T4SD #Tips 4 Spring Devs

T4SD (Tips 4 Spring Devs): Request header filtering in @RequestMapping

Just a quick tip for the Spring fans out there…​ I was leading a workshop yesterday and this question arose: Is it possible to filter requests by header content using Spring’s various request mapping (@RequestMapping, @GetMapping, @PostMapping, et al) annotations? Not only is it possible, it’s easy, and the implementation is concise & clean! Let’s take a look.  The code Here is a simple example that filters based upon the content-type of the header: ...

#Actuator #HATEOAS #java #management.security.enabled #security #Spring #Spring Boot #Spring Boot Actuator #Spring Security

T4SD (Tips 4 Spring Devs): Spring Boot Actuator /actuator endpoint

Just a quick tip for the Spring fans out there…​ If you’ve decided to try out Spring Boot Actuator – and if you haven’t you really should! – you may have run into one of two interesting hitches that are easily resolved: You are unable to access any of the various Actuator endpoints (/beans, /env, et al) You can access those endpoints and yet are unable to access /actuator, the primary (navigable) Actuator endpoint ...

#alexa #Cloud #Cloud Foundry #random tweet #Spring Boot #tweet #Twitter #voice

How to Create an Alexa Skill with Spring Boot & Cloud Foundry

I’ve been working with Amazon’s Alexa & the Echo family of devices for the past several months and have created a couple of pretty useful and/or interesting skills. The first one I liked well enough to publish was QOTD, a Quote of the Day app that retrieves and reads a random quote per request. The second was Master Control Program, which enabled voice control of my home renewable energy system’s various inputs and controls. ...

#Arduino #Cloud #Cloud Foundry #Internet of Things #IoT #java #Raspberry Pi #RE #renewable energy #self powered #Spring

Building a Portable, Self-powering, Cloud-Connected IoT demo

Or “How to build a portable self-powered, self-licking ice cream cone.” 😀 Several years ago, I started building what I referred to affectionately as a self-licking ice cream cone: a Renewable Energy (RE) system that powered the same IoT system that monitored it. I’ve given several talks about this system, both its hardware and its software stack, and there are so many useful (and scalable) lessons I’ve learned that I really enjoy sharing. ...