How do I do date manipulation in SpEL?
问题 How can I do date manipulation in the Spring Expression language? <si:service-activator id="entryReader" expression="@blogEntryReader.getEntriesBetweenDates(payload.startDate, payload.startDate **PLUS 30 DAYS**)" input-channel="blogEntryReaderChannel"/> 回答1: Unfortunately, the java.util.Calendar doesn't have a builder API so it's not SpEL-friendly. One solution would be to use a helper class... public static class CalendarManip { public static Date addDays(Date date, int days) { Calendar cal