In previous post, we have created a REST Service with Global CORS Configuration using Java Config. This tutorial will introduce way to define global CORS configuration out of our Controller with XML Config in Spring Boot example.
In previous post, we have created a REST Service with Spring CORS integration using
@CrossOrigin. This tutorial will introduce way to define global CORS configuration out of our Controller with Java Config in Spring Boot example.
By default, the web application Context Path is “/”. This example shows you 2 ways to set Context Path in Spring Boot: by Java Code and by properties file.
In the tutorial, JavaSampleApproach will guide you how to configure multi Postgres DataSources with Spring Boot.
In application development, sometimes we should make different configuration for each environment. Spring Profiles provides a way to separate application configuration into some parts and they are only available in one or more specific environments.
This tutorial introduces ways to use Spring Profiles by @Profile Annotation or XML Configuration.
annotation-config and component-scan are important basic concepts of Spring Core.
This tutorial helps you understand how to use them and difference between them.
Spring based configuration using Annotation help you to create Spring configurations without XML.
This tutorial give you an example with most of Spring Annotation for configuration: @Configuration, @Bean (with custom bean lifecycle method), @Import, @Scope. And they’re in multi-configuration context.