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
- Host: GitHub
- URL: https://github.com/callicoder/spring-boot-configuration-properties-demo
- Owner: callicoder
- Created: 2018-08-31T13:00:21.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-10-14T02:49:36.000Z (over 3 years ago)
- Last Synced: 2025-04-19T08:34:30.044Z (about 2 months ago)
- Topics: configuration, configuration-properties, spring, spring-boot
- Language: Java
- Homepage: https://www.callicoder.com/spring-boot-configuration-properties-example/
- Size: 48.8 KB
- Stars: 16
- Watchers: 2
- Forks: 28
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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 .