Fifth Round of Improvements to the Reddit Application REST Spring 1. Overview Let’s continue moving forward the Reddit application from our ongoing case study. 2. Send Email Notifications on Post Comments Reddit is missing email notifications – plain and simple. What I’d like to see is – whenever someone comments… Continue Reading reddit-web-app-improvements-5

How to Inject a Property Value Into a Class Not Managed by Spring? Spring 1. Overview By design, classes annotated with @Repository, @Service, @Controller, etc. are managed by Spring and injecting configuration there is easy and natural. What’s not as simple is passing configuration to classes that are not directly… Continue Reading inject-properties-value-non-spring-class

Access a File from the Classpath in a Spring Application 1. Introduction In this tutorial, we’ll see various ways to access and load the contents of a file that’s on the classpath using Spring. Further reading: A Guide to the ResourceBundle It’s always challenging to maintain and extend multilingual applications.… Continue Reading spring-classpath-file-access

Preserve the History of Reddit Post Submissions 1. Overview In this installment of the Reddit App case study, we’re going to start keeping track of the history of submission attempts for a post, and make the statuses more descriptive and easy to understand. 2. Improving The Post Entity First, let’s… Continue Reading reddit-app-maintain-full-history-of-post-operations

Deploying a Spring Boot Application to Cloud Foundry 1. Overview Deploying a Spring Boot application to Cloud Foundry is a simple exercise. In this tutorial, we’ll show you how to do it. 2. Spring Cloud Dependencies Since this project will require new dependencies for Spring Cloud project, we’ll add the… Continue Reading spring-boot-app-deploy-to-cloud-foundry

Decoupling Registration from Login in the Reddit App 1. Overview In this tutorial – we’ll replace the Reddit backed OAuth2 authentication process with a simpler, form-based login. We’ll still be able to hook Reddit up to the application after we log in, we’ll just not use Reddit to drive our… Continue Reading reddit-app-replace-reddit-auth-with-form-based-login

Intro to the Spring ClassPathXmlApplicationContext Spring 1. Overview The Spring Framework core is, simply put, an IoC container used to manage beans. There are two basic types of containers in Spring – the Bean Factory and the Application Context. The former provides basic functionalities, which are introduced here; the latter… Continue Reading spring-classpathxmlapplicationcontext

Testing REST with multiple MIME types 1. Overview This article will focus on testing a REST Service with multiple Media Types/representations. We will write integration tests capable of switching between the multiple types of Representations supported by the API. The goal is to be able to run the exact same… Continue Reading testing-rest-api-with-multiple-media-types