Save session attributes in MySQL database

Spring Session provides an API and implementations for managing a user’s session information while also making it trivial to support clustered sessions without being tied to an application container-specific solution.

In this article we will show how to provides SessionRepository implementation backed by a relational database and configuration support. We will save session attributes in a MySQL database.

Maven Dependencies

Spring JDBC session configuration

HttpSession in Controller

Spring Security is a Java / Java(Jakarta)EE framework that provides authentication, authorization, and other security features for enterprise applications.

In this article, we’ll show how to create a custom database-based UserDetailsService for authentication with Spring Security.


  • Spring web contains common web specific utilities for both Servlet and Portlet environments.
  • Spring security contains authentication and access control functionality
  • Thymleaf is a server-side Java template engine for both web.
  • Spring data JPA it improve the implementation of data access layers by reducing the effort to the amount that’s actually needed.
  • MySQL connector it…

Android multi-threaded REST requests

An example is available as a GitHub repository that linked at the end of the post.

We will see how to integrate Retrofit with RxJava to simplify threading in android app. This approach can be an alternative to AsyncTask which is deprecated by Google.

What is Retrofit?

A type-safe HTTP client for Android and Java. It makes it relatively easy to retrieve and upload JSON (or other structured data) via a REST based web-service. In Retrofit you configure which converter is used for the data serialization. Typically for JSON you use GSon, but you can add custom converters to process XML or other…

Display collection of data in Dialog Box

Technologies: Kotlin, Android Studio

An example is available as a GitHub repository that linked at the end of the post.

Dialogs inform users about a task and can contain critical information, require decisions, or involve multiple tasks. It’s not just to display warning messages.

Dialog is the base class for dialogs. There are several derived classes, for example, AlertDialog, ProgressDialog, DatePickerDialog, and TimePickerDialog.

Login Dialog

But these classes are limited. We can’t customize them as we want. For more freedom of customization. We use the mother class Dialog.

In this example, we will display a list of animals and the nations in…

Personnel Portfolio with Angular

This portfolio is a responsive HTML Template for your personal CV website. Responsive HTML template based on Bootstrap. All files and code has been well designed for easy to customize.

Technology : Angular 11, BootStrap, HTML5, CSS3, TypeScripte, JQuery.

Code source :

WEB Site :

Required :

  • Node Package Manager (NPM)
  • Node.JS
  • Angular CLI
  • GitHub repository (To Deployment)

Library used:

  • AOS — Animate on scroll
  • Typed.js — Animate typing text
  • Fortawesome, Iconify design — Icons
  • JQuery — Buttons events
  • BootStrap4 — Set of CSS and JavaScript files that contain predefined rules.

Install Library:

npm install


ng serve


Before deployment, you must modify package.json: Make your GitHub username, name of your GitHub repository and your Angular project name.

Then add your code and push it. Finally, execute this command:

npm run deploy

Zinedine Benkhider

I am passionate about WEB and Mobile development. Very curious to learn and I like to share my knowledge.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store