Implementing OAuth2 in Spring: using scopes (part 2)
We have seen in the previous post basic OAuth2 concepts and how to implement and to perform different grants in Spring. In this post, we are going to go...
Implementing OAuth2 in Spring: part 1
OAuth2 is a set specifications that provide means of securing access to Rest APIs mainly. The main purpose of OAuth is to allow performing authentication and authorization through the use...
Using HotSwap agent for hot reloading Java code
Java language and JVM languages in general are known to be simultaneously compiled and interpreted languages. The compiling phase involves compiling the source code to byte code, and then the...
the Decorator design pattern: a real world java example
The decorator design pattern allows complementing functionalities of an existing interface without altering the original behavior. It is a common pattern, and it can be used, for example, to add...
Using Guice with Jersey 2, without external librairies
If you have a legacy application or you are developing a new application that uses Guice for dependency injection, and there is Jersey 2 involved, then you may face several...
How to deploy your project to Maven Central
So, you have finally got your java library/project finalized, tested, and ready to go. if want to make it available to users through their build system (Maven, Gradle,..), you need...
Quick overview of Spring boot
If there is a word they care about at Pivotal, it is production. Deploying apps and services to production effectively is what companies strive for, sometimes without finding the perfect...
Overview of Java lambda expressions
Lambdas are considered one of the major changes introduced to the Java language constructs since its release. Sooner or later, Java developers will need to get accustomed to using and...
Testing a Rest API in Spring Framework
After you have designed your Rest API and implemented it successfully, you need to test it. Testing a Rest Api is not easy because of the application context. By default,...
Generating Json using Jackson
JSON is the number one format when it comes to exchanging data over the Web. In this tutorial, we will go through how to generate JSON content, using Jackson library....