An open API service indexing awesome lists of open source software.

https://github.com/callicoder/spring-boot-configuration-properties-demo

Spring Boot externalized environment based configuration with @ConfigurationProperties and Spring Profiles
https://github.com/callicoder/spring-boot-configuration-properties-demo

configuration configuration-properties spring spring-boot

Last synced: about 1 month ago
JSON representation

Spring Boot externalized environment based configuration with @ConfigurationProperties and Spring Profiles

Awesome Lists containing this project

README

        

# Spring Boot @ConfigurationProperties Example

**Tutorial:** [Spring Boot @ConfigurationProperties: Binding external configurations to POJO classes](https://www.callicoder.com/spring-boot-configuration-properties-example/)

## Requirements

1. Java - 1.8.x

2. Maven - 3.x.x

3. MySQL - 5.x.x

## Steps to Setup

**1. Clone the application**

```bash
git clone https://github.com/callicoder/spring-boot-configuration-properties-demo.git
```

**2. Build and run the app using maven**

```bash
mvn package
java -jar target/config-properties-demo-0.0.1-SNAPSHOT.jar
```

Alternatively, you can run the app directly without packaging like this -

```bash
mvn spring-boot:run
```

The app will start running at .