This tutorial will show you how to send a basic mail via Spring framework’s email support. A class that comes in pretty handy when dealing with JavaMail messages is the org.springframework.mail.javamail.MimeMessageHelper class, which shields you from having to use the verbose JavaMail API. Using the MimeMessageHelper it is pretty easy to create a MimeMessage. You…

Posted in Email Spring Boot Spring Core Spring Email

Send email via Spring – JavaMailSender and MimeMessageHelper

This tutorial will show you how to send a email via Spring framework’s email support. The Spring Framework provides a helpful utility library for sending email that shields the user from the specifics of the underlying mailing system and is responsible for low level resource handling on behalf of the client. The org.springframework.mail.javamail.JavaMailSender interface adds…

Posted in Email Spring Boot Spring Core Spring Email

Send email via Spring – JavaMailSender and MimeMessagePreparator

Introduction This tutorial will show you how to send a basic mail via Spring framework’s email support. The Spring Framework provides a helpful utility library for sending email that shields the user from the specifics of the underlying mailing system and is responsible for low level resource handling on behalf of the client. The central…

Posted in Email Spring Boot Spring Core Spring Email

Send email via Spring – MailSender and SimpleMailMessage

This tutorial will show you how to use @PathVariable annotation in Spring MVC. The @PathVariable annotation is used on a method argument to bind it to the value of a URI template variable. You can also make this path variable optional in the URI. path variable can appear in any path segment of the URI.

Posted in Spring Boot Spring MVC

Spring Web MVC @PathVariable

This tutorial will show you how you can select or fetch data from a database using Spring JdbcTemplate. I am going to use Spring Boot framework to select single record, multiple records and only single field or column value from the database. simplifies the use of JDBC and helps to avoid common errors. It executes…

Posted in Spring Boot Spring JDBC

Select Single and Multiple Records using Spring JdbcTemplate

This tutorial will show you how you can insert an object or multiple objects into a database using Spring JdbcTemplate. So you are going to see how to insert single record and multiple records into database table. I am going to use PreparedStatement and BatchPreparedStatementSetter for inserting multiple records. Sometimes you need to insert or…

Posted in Spring Boot Spring Core Spring JDBC

Single and Multiple Records Insert using Spring JdbcTemplate

With this example I will show you how to inject List Collection in Spring application. The collection type I am going to show you is List or Array. I am going to use Spring Boot framework. I will show you various ways of loading a list of configurable properties in Spring application. The list of…

Posted in Spring Boot Spring Core

Collection Element List in Spring