본문 바로가기
IT/Spring

2021-04-09-static-properties

by 봉즙 2023. 2. 28.

layout : post
title : "static properties"

category : Spring

    public static String SERVICE_URL;
    public static String FILE_URL;

    @Value("${temp.service-url}")
    public void setServiceUrl(String value) {
        SERVICE_URL = value;
    }

    @Value("${temp.file-url}")
    public void setFileUrl(String value) {
        FILE_URL = value;
    }

'IT > Spring' 카테고리의 다른 글

2021-05-03-JPA-Valid-Message  (0) 2023.02.28
2021-04-21-JPA-Projection  (0) 2023.02.28
2021-04-09-batch  (0) 2023.02.28
2021-04-05-deep-copy  (0) 2023.02.28
2021-01-26-remote-debug  (0) 2023.02.28

댓글