When upgrading springboot to 3.2.0, the error SpelEvaluationException: EL1005E: Type cannot be found
happens.
This has happened from previous springboot version but it has been fixed.
But lately when springboot 3.2.0 was released, this happened again.
I got this error:
Caused by: org.springframework.expression.spel.SpelEvaluationException: EL1005E: Type cannot be found 'co.lib.util.FaceUtils'
at org.springframework.expression.spel.support.StandardTypeLocator.findType(StandardTypeLocator.java:128)
at org.springframework.expression.spel.ExpressionState.findType(ExpressionState.java:181)
at org.springframework.expression.spel.ast.TypeReference.getValueInternal(TypeReference.java:70)
at org.springframework.expression.spel.ast.CompoundExpression.getValueRef(CompoundExpression.java:61)
at org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:97)
at org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNodeImpl.java:114)
at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:273)
at org.springframework.context.expression.StandardBeanExpressionResolver.evaluate(StandardBeanExpressionResolver.java:167)
Basically, I suspect it happened in this code:
class FaceState {
@Value("#{T(co.FaceUtils).parseDate('${git.commit.time:}')}")
private CommitDateTime commitTime;
}
Anybody at least guide me on how to fix this?..