Skip to content

Commit

Permalink
feat: envChecker 추가 (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcy0308 authored Jan 9, 2025
1 parent 4cdc8bc commit 467eafe
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/java/com/scg/stop/global/config/EnvChecker.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.scg.stop.global.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class EnvChecker implements CommandLineRunner {

@Value("${spring.datasource.url}")
private String dbHost;

@Override
public void run(String... args) {
System.out.println("DB_HOST = " + dbHost);
}
}

0 comments on commit 467eafe

Please sign in to comment.