spring-el

SpEL cannot handle 'é'?

こ雲淡風輕ζ 提交于 2021-02-10 07:35:33
问题 I'm a french so I put some é è ê ô û in my code. (and I don't speek english very well). I've a method like that in a class Formulaires : public static Formulaire exposé() And in a config spring xml file, I try : <entry key="intro" value="#{T(com.myproject.Formulaires).exposé()}"/> But Spring says : Caused by: java.lang.IllegalStateException: Cannot handle (233) 'é' at org.springframework.expression.spel.standard.Tokenizer.process(Tokenizer.java:193) at org.springframework.expression.spel

SpEL cannot handle 'é'?

冷暖自知 提交于 2021-02-10 07:35:12
问题 I'm a french so I put some é è ê ô û in my code. (and I don't speek english very well). I've a method like that in a class Formulaires : public static Formulaire exposé() And in a config spring xml file, I try : <entry key="intro" value="#{T(com.myproject.Formulaires).exposé()}"/> But Spring says : Caused by: java.lang.IllegalStateException: Cannot handle (233) 'é' at org.springframework.expression.spel.standard.Tokenizer.process(Tokenizer.java:193) at org.springframework.expression.spel

How do I do date manipulation in SpEL?

亡梦爱人 提交于 2021-01-28 09:31:13
问题 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

How do I do date manipulation in SpEL?

本秂侑毒 提交于 2021-01-28 09:23:15
问题 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

@Cacheevict sometimes missing an object in the context (EL1011E)

给你一囗甜甜゛ 提交于 2021-01-21 05:36:49
问题 I’m fighting with the error about a week without any result. I have a legacy Spring application which was upgraded to Spring 3.2.11.RELEASE and Hibernate 4.2.15.Final. There is a class containing Spring cache annotated methods: public class GroovyFormulaScriptCompilerImpl implements FormulaScriptCompiler, CacheFlusher<ClassifyObjectAttributePlain>, InitializingBean { … @Override @Cacheable(value="compile_cache", key="'formulaforAttribute' + #classifyObjectAttribute.getPlainId()") public

@Cacheevict sometimes missing an object in the context (EL1011E)

不问归期 提交于 2021-01-21 05:36:13
问题 I’m fighting with the error about a week without any result. I have a legacy Spring application which was upgraded to Spring 3.2.11.RELEASE and Hibernate 4.2.15.Final. There is a class containing Spring cache annotated methods: public class GroovyFormulaScriptCompilerImpl implements FormulaScriptCompiler, CacheFlusher<ClassifyObjectAttributePlain>, InitializingBean { … @Override @Cacheable(value="compile_cache", key="'formulaforAttribute' + #classifyObjectAttribute.getPlainId()") public