Error evaluating expression ‘ew.sqlSegment = null and ew.sqlSegment = ‘‘ and ew.nonEmptyOfNormal‘.

o.jeecg.common.exception.JeecgBootExceptionHandler:71 - nested exception is org.apache.ibatis.builder.BuilderException: Error evaluating expression 'ew.sqlSegment != null and ew.sqlSegment != '' and ew.nonEmptyOfNormal'. Cause: org.apache.ibatis.ognl.OgnlException: sqlSegment [java.lang.ExceptionInInitializerError]
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.builder.BuilderException: Error evaluating expression 'ew.sqlSegment != null and ew.sqlSegment != '' and ew.nonEmptyOfNormal'. Cause: org.apache.ibatis.ognl.OgnlException: sqlSegment [java.lang.ExceptionInInitializerError]

用202202社区版idea,加载一个工程,JAVA_VERSION="18.0.2.1"。试了其他很多很多方法,都没解决。后来,对比了之前能正常跑的机器的jdk,发现是jdk1.8.0_171。换上后。解决了。

应该是lombok的版本还没支持18.0.2.1。

换了jdk后,project structure -> project setting -> project -> SDK, 要换成171的。

还有project structure -> project setting -> modules,每个模块的 SDK, 也要每个都换成171的。这个容易漏掉。

你可能感兴趣的:(java,lombok,idea,jdk1.8.0_171)