-
Spring Mail Sending Email with Freemarker HTML Template Example
In this tutorial we demonstrate how to send a HTML email using a custom freemarker template using spring framework. In this topic we learn how to create and configure a custom freemarker template using spring.
Date: 2019-08-10 View: 1223
-
Spring Mail Sending Email with Thymeleaf HTML Template Example
In this tutorial we demonstrate how to send a HTML email using a custom thymeleaf template using spring framework. In this topic we learn how to create and configure a custom thymeleaf template using spring.
Date: 2019-08-10 View: 1175
-
Spring Mail Integration Testing with JUnit and GreenMail Example
In this example we show how to use Spring Mail and write Integration Tests using JUnit and GreenMail. We start by writing a simple email service that sends out emails. We want to verify that this email service sends out correct emails, so we use GreenMail – which is an open source test suite of email servers for testing purposes.
Date: 2019-08-10 View: 3337
-
Spring LDAP + Spring Boot Embedded LDAP Configuration Example
In this tutorial we demonstrate how to use spring boot and spring ldap to configure an embedded LDAP server.
Date: 2019-08-10 View: 1341
-
Spring LDAP Mapping Attributes to POJO with AttributesMapper Example
This tutorial demonstrates how to use spring LDAP to map attributes on a POJO using the AttributesMapper<T> class.
Date: 2019-08-10 View: 1201
-
Spring LDAP CRUD Operations Binding and Unbinding Example
In this tutorial we use spring ldap to demonstrate CRUD (Create, Read, Update Delete) operations performed on an LDAP server.
Date: 2019-08-10 View: 969
-
Spring LDAP Object Directory Mapping (ODM) Configuration Example
In the following tutorial we demonstrate how to use Spring LDAP Object Directory Mapping (ODM). ODM offers developers the ability to use annotations to map LDAP directories to Java objects.
Date: 2019-08-10 View: 1281
-
Spring Boot + Spring LDAP Advanced LDAP Queries Example
This tutorial demonstrates how to write advanced LDAP queries using Spring LDAP. We can write advanced queries using the LdapQueryBuilder or by using custom filters, either by using clear text or custom logical filters.
Date: 2019-08-10 View: 1241
-
Spring Boot + Spring LDAP Integration Testing Example
In this example we demonstrate how to use spring boot and spring ldap for writing ldap integration tests. We set up an embedded LDAP server and populate it with a custom schema.ldif file.
Date: 2019-08-10 View: 1407
-
Spring Security + Spring LDAP Authentication Configuration Example
In this tutorial we demonstrate how to Configure Spring Security + Spring LDAP authentication application. We show how to configure spring security and spring LDAP using Java And XML Configuration.
Date: 2019-08-10 View: 1229
-
Spring boot Create a Custom Banner Example
You can change the mission critical banner that is printed on start up with your own custom banner. You have the option to add your own custom banner.txt text file by setting the banner.location to the location of such a file. The default charset is UTF-8. In addition you can also add a banner.gif, banner.jpg or banner.png image file or set a banner.image.location property. Images will be converted into an ASCII art representation and printed above any text banner. In this tutorial we demonstrate how to create a custom banner using spring boot. We Generated an ascii art and place it in a file called banner.txt and place it in the directory src/main/resources.
Date: 2019-08-10 View: 1505
-
Spring Boot Create Executable using Maven with Parent Pom
Maven users can inherit from the spring-boot-starter-parent project to obtain sensible defaults. You should only need to specify the Spring Boot version number on this dependency. If you import additional starters, you can safely omit the version number. This tutorial demonstrates how to create an executable jar/war using Maven with a Parent POM. In another tutorial, you can also create an executable jar/war without using a parent pom
Date: 2019-08-10 View: 1454
-
Spring Boot – Create Executable using Maven without Parent Pom
Not everyone likes inheriting from the spring-boot-starter-parent POM to create an executable jar/war. You may have your own corporate standard parent that you need to use, or you may just prefer to explicitly declare all your Maven configuration. In this tutorial we’ll demonstrate how to create an executable jar/war using Maven without a parent pom.
Date: 2019-08-10 View: 1381
-
Spring Boot Random Configuration Property Values
In this tutorial we demonstrate how to generate random property values for configuration properties using Spring Boot. The RandomValuePropertySource class is added – by spring boot – to the classpath. We can use it to produce random String, Integer, Long or UUID values.
Date: 2019-08-10 View: 1225
-
Spring Boot Passing Command Line Arguments Example
Command Line Arguments can be used to configure your application, pass data at runtime, or to overwrite default configuration options. By default SpringApplication will convert any command line option arguments (starting with ‘–‘, e.g. –server.port=9090) to a property and add it to the Spring Environment. Command line properties always take precedence over other property sources. In this tutorial we demonstrate how to pass, parse and access command line arguments using Spring Boot.
Date: 2019-08-10 View: 1202