티스토리 뷰

nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'cronExpression' threw exception; nested exception is java.text.ParseException: Support for specifying both a day-of-week AND a day-of-month parameter is not implemented.


스프링 쿼츠의 cronExpression 설정시 

day-of-week나 day-of-month가 같이 값이 있을경우 발생


설정 값이 아래와 같은데

초 분 시 일 월 요일 (년옵션)


일과 요일은 같이 지정할 수 없음

* * * * * ?


혹은

* * * ? * MON


처럼 요일이 있으면 일을 ? 로 일이있으면 요일을 ? 로 해야함



댓글