반응형
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.ApplicationArguments; | |
import org.springframework.boot.ApplicationRunner; | |
import org.springframework.stereotype.Component; | |
@Component | |
public class GistApplicationRunner implements ApplicationRunner { | |
@Autowired | |
private MenuCache menuCache; | |
@Override | |
public void run(ApplicationArguments args) throws Exception { | |
// 최초 한번 실행. | |
} | |
} |
반응형
'java' 카테고리의 다른 글
Aes256Util.java - AES/GCM/NoPadding (0) | 2023.03.28 |
---|---|
spring custom ErrorController (0) | 2022.11.16 |
jackson JsonView (Json Filter) 사용법. (0) | 2022.10.07 |
사용자 정의 JsonSerializer (0) | 2022.09.27 |
스프링부트 jackson response date 타입 변환 설정 (0) | 2022.09.02 |
CalUtil.java 계산을 도와주는 유틸. (0) | 2022.02.11 |
java - 금액 및 숫자 한글로 변환 (0) | 2022.01.28 |
Springboot Web Mvc Config 설정 예제 (0) | 2021.10.05 |