Home » Tag Archives: Spring

Tag Archives: Spring

Build a Mobile App with React Native and Spring Boot

spring-interview-questions-answers

“I love writing authentication and authorization code.” ~ No Java Developer Ever. Tired of building the same login screens over and over? Try the Okta API for hosted authentication, authorization, and multi-factor auth. React Native is a framework for building mobile applications with React. React allows you to use a declarative style of programming to describe how your UI should ...

Read More »

Building Enterprise Java applications, the Spring way

spring-interview-questions-answers

I think it is fair to say that Java EE has gained pretty bad reputation among Java developers. Despite the fact that it has certainly improved on all fronts over the years, even changed home to Eclipse Foundation to become Jakarta EE, its bitter taste is still quite strong. On the other side we have Spring Framework (or to reflect ...

Read More »

HTTP cache with Spring examples

spring-interview-questions-answers

Caching is a powerful feature of the HTTP protocol but for some reason, it’s mainly considered for static resources like images, CSS stylesheets, or JavaScript files. However, HTTP caching isn’t limited to application’s assets as you can also use it for dynamically computed resources. With a small amount of work, you can speed up your application and improve the overall ...

Read More »

Cached Prepared Statements with Spring Data Cassandra

Today I have a short post on using Prepared Statements in Spring Data Cassandra. Spring provides you with some utilities to make using Prepared Statements easier rather than relying on registering queries manually yourself with the Datastax Java Driver. The Spring code provides a cache to store prepared statements that are frequently used. Allowing you to execute your queries via ...

Read More »

How to bind @RequestParam to object in Spring

spring-interview-questions-answers

Do you have multiple parameters annotated with @RequestParam in a request mapping method and feel it isn’t readable? The annotation looks pretty straightforward when there’s one or two input parameters expected in a request but when the list gets longer you might feel overwhelmed. You cannot use the @RequestParam annotation inside objects but it doesn’t mean you’re left with no ...

Read More »

Knative serving – using Ambassador gateway

spring-interview-questions-answers

This is a continuation of my experimentation with Knative serving, this time around building a gateway on top of a Knative serving applications. This builds on two of my previous posts – on using Knative to deploy a Spring Boot App and making a service to service call in Knative. Why a Gateway on top of Knative application To explain ...

Read More »

Use Kotlin to Build a Basic Android CRUD App

“I love writing authentication and authorization code.” ~ No Java Developer Ever. Tired of building the same login screens over and over? Try the Okta API for hosted authentication, authorization, and multi-factor auth. Kotlin was recently given official Android support status by Google, but it remains difficult to understand for many developers. The best way to start is by creating ...

Read More »

Java: Streaming a JDBC ResultSet as JSON

This post shows how you can convert a java.sql.ResultSet to JSON and stream it back to the caller. This is useful if you want to send a large dataset from a JDBC DataSource to a web application in JSON format. Streaming allows you to transfer the data, little by little, without having to load it all into the server’s memory. ...

Read More »