본문 바로가기
728x90
반응형
SMALL

IT281

No qualifying bean of type 'org.springframework.core.task.TaskExecutor' available: expected single matching bean but found 2: applicationTaskExecutor, taskScheduler Spring boot 에서 @Async 와 @Scheduled 를 동시에 사용할 때 No qualifying bean of type 'org.springframework.core.task.TaskExecutor' available: expected single matching bean but found 2: applicationTaskExecutor, taskScheduler 이런 로그를 볼 수 있다. @Async 기본설정은 SimpleAsyncTaskExecutor 를 사용하도록 되어 있고 @Scheduled 는 spring 에 의해 생성된 한개의 thread-pool 에서 실행된다. Spring 에서 생성한 thread-pool 과 SimpleAsyncTaskExecutor 모두 'org.spring.. 2022. 3. 2.
Ehcache Event Listener Ehcache 를 사용할 때 cache 가 remove 되는 시점을 알고 싶은 경우가 있다. ehcache v2 (2.10.9.2) 에서 cache 에 대한 event listener 를 통해 확인할 수 있는 방법을 정리 한다. (ehcache v3 에 대해서는 예제 코드가 많은데 v2 에 대해서는 별로 없어서 정리한다.) ehcache 사용하기 "cacheManager" 는 spring cache 에서 같은 이름이 있기 때문에 "ehCacheManager" 로 설정했다. @Configuration public class CacheConfigure { @Bean(name="cacheManagerFactoryBean") public EhCacheManagerFactoryBean ehCacheManagerF.. 2021. 9. 13.
Java ProcessBuilder cd 로 이동 Java 에서 특정 shell script 를 실행해야 할 일이 생겨 ProcessBuilder 를 이용했다. ProcessBuilder pb = new ProcessBuilder("/bin/sh", command); try { pb.redirectErrorStream(true); Process proc = pb.start(); try (BufferedReader br = new BufferedReader(new InputStreamReader(proc.getInputStream()))){ String line = null; while ((line = br.readLine()) != null) { rtnStr = line; log.debug("shell script return data: {}", rtn.. 2021. 7. 23.
Windows 10 Update - 장치에 중요한 보안 및 품질 수정이 누락되어 있습니다. 보안문제로 PC 를 포맷하고 Windows 를 새로 설치 했다. Windows 업데이트 시 아래와 같은 붉은색 메시지가 나오는 경우가 있다. "장치에 중요한 보안 및 품질 수정이 누락되어 있습니다." 그래서 업데이트 확인 버튼을 여러번 눌러도 제대로 업데이트가 진행되지 않는다. 이런 경우 수동 업데이트를 하면 되는데 아래 링크로 접속해서 https://www.microsoft.com/ko-kr/software-download/windows10 Windows 10 다운로드 Windows 10용 ISO 파일을 다운로드한 경우, 해당 파일은 선택한 위치에 로컬로 저장됩니다.컴퓨터에 타사 DVD 굽기 프로그램이 설치되어 있으며 해당 프로그램을 사용하여 설치 DVD를 만들려는 경우, www.microsoft.co.. 2021. 7. 21.
728x90
반응형
LIST