[ECSide] ecside 大侠,帮忙看个问题
backup1997
2013-03-28
在spring中配了EasyDataAccess 功能,
<bean id="userQuery" class="org.ecside.easyda.DataAccessModel" p:dataSource-ref="dataSource"> <property name="sqls"> <map> <entry key="queryAll"> <value> SELECT * FROM t_sys_user U WHERE 1=1 #{IF:#{userName}!=EMPTY} AND U.USER_NAME LIKE #{userName} #{/IF} #{IF:#{userPhone}!=EMPTY} AND U.USER_PHONE LIKE #{userPhone} #{/IF} </value> </entry> </map> </property> </bean> 服务启动时报 : org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userQuery' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.expression.spel.SpelParseException: EL1041E:(pos 2): After parsing a valid expression, there is still more data in the expression: 'colon(:)' 帮忙看下,怎么解决,非常感谢 |