DEV Community

sunj
sunj

Posted on

Spring Boot @Value, 2024-03-02

    @Value("${jwt.secret-key}")
    private final String secretKey;

Enter fullscreen mode Exit fullscreen mode

하드 코딩을 하면 깃허브에 올렸을 시 유출의 위험이 있기 때문에,
application.properties와 같이 따로 값을 저장하고 불러올 수 있다.

Top comments (0)