I have following annotation in my code At this case I have to have properties like this Propery file looks unreadable because I have calculate value to miliseconds. Is there way to pass value like 5m or 30s there ? Answer As far as I know, you can’t do it directly. However, Spring boot configuration properties do support automatic conversion
Tag: spring-scheduled
How can I use Spring scheduler to do some work at 0 a.m. in each time zone?
Just like the title , some task need to execute at 0 a.m. in each time zone, but @Scheduled annotation only support setting one zone, as shown below: I only can do task at 0 a.m. in “Asia/Shanghai”, how can I execute this task at each time zone? Can the Spring scheduler support or any other tool help me? Sorry,