-
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: 1192
-
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: 1182
-
Spring Boot @ConfigurationProperties Annotation Example
Spring Boot allows you to externalize your configuration so you can work with the same application code in different environments. You can use properties files, YAML files, environment variables and command-line arguments to externalize configuration. In the following tutorial we demonstrate how to use the @ConfigurationProperties annotation to map your configuration properties to a type safe configuration class.
Date: 2019-08-10 View: 1255
-
Spring Boot Managing Profiles with @Profile Annotation Example
Spring Profiles provides a way to segregate parts of your application configuration and make it only available in certain environments. This is particularly useful when configuring different environments like development and/or production. In the following tutorial we demonstrate how to manage spring profiles with @Profile annotation.
Date: 2019-08-10 View: 1318
-
Spring Boot Spring Data JPA with Hibernate and H2 Web Console
The H2 database provides a browser-based web console that Spring Boot can auto-configure for you. In order to let spring auto-configure the H2 Web Console, we have to make sure we are developing a web application, make sure the com.h2database:h2 dependency resides on the classpath and we are using the org.springframework.boot:spring-boot-devtools. You can also manually configure the h2 web console. In the following tutorial we demonstrate how to configure the H2 Web Console using Spring Boot, Spring Data with Hibernate.
Date: 2019-08-10 View: 1168
-
Spring Caching Example with Java and XML Configuration
Date: 2019-08-10 View: 1077
-
Spring Boot Caffeine Caching Example Configuration
Expensive (CPU or I/O) bound operations can slow down your system. Caching is a way to improve the performance of your system. In this tutorial we demonstrate Caffeine Caching using Spring-Boot. You can use caffeine as a caching provider on top of the spring framework caching abstraction.
Date: 2019-08-10 View: 1144
-
Spring Boot Couchbase Caching Example Configuration
Couchbase is a NoSQL database that can act as a spring framework cache provider on top of the spring framework cache abstraction layer. Caching improves the overal performance of an application.
Date: 2019-08-10 View: 1113
-
Spring Boot Ehcache 2 Caching Example Configuration
Ehcache is an open source, standards-based cache that boosts performance, offloads your database, and simplifies scalability. It’s the most widely-used Java-based cache because it’s robust, proven, full-featured, and integrates with other popular libraries and frameworks. Ehcache scales from in-process caching, all the way to mixed in-process/out-of-process deployments with terabyte-sized caches.
Date: 2019-08-10 View: 1078
-
Spring Boot Hazelcast Caching Example Configuration
Hazelcast is a Distributed In-Memory Data Grid tool and can be used as a caching provider for the spring framework abstraction caching layer. Using caching can improve the overall performance of your system. In the following tutorial we demonstrate how to configure hazelcast caching with spring boot.
Date: 2019-08-10 View: 1091
-
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: 1419
-
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: 1241
-
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: 1488
-
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: 989
-
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: 1252