ZhangKe4042602

Results 5 comments of ZhangKe4042602

我的使用MAC OS 电脑调试的,发现在判断时只判断了Linux和Windows。我修改后继续调试。在执行maven 命令begin to exec the command /bin/bash -c mvn dependency:copy-dependencies -DoutputDirectory=/app/doe/lib/ -DincludeScope=compile -f /app/doe/pom.xml; 错误信息是: [WARNING] [WARNING] Some problems were encountered while building the effective settings [WARNING] [INFO]...

我今天找了下报错的原因,是在执行Linux maven命令时只能在/app/doe下,也就是pom.xml下执行才可以。我已经把/app/doe添加到环境变量中了还是报错。在/app/doe下执行就可以。明天再找下原因吧。感觉这个工具还是挺方便的,十分感谢

补充一下。我在使用中发现如果判断的-1必须是Long,(:#{#idList[0]} = -1L or u.id in :idList),估测是因为id的类型为Long。 ![jpa类型异常](https://user-images.githubusercontent.com/38808188/122353871-0a92f280-cf83-11eb-9da2-471d39af899b.jpg) ![JPA正常](https://user-images.githubusercontent.com/38808188/122353950-1b436880-cf83-11eb-8584-54c3c44b7e5d.jpg)

![jpaindex1](https://user-images.githubusercontent.com/38808188/122370156-6ebcb300-cf91-11eb-9be9-9c9b9dd1456c.jpg) ![jpaindex2](https://user-images.githubusercontent.com/38808188/122370254-8136ec80-cf91-11eb-8279-7f5559bf4d1f.jpg) 张哥,使用中遇到了参数是List 查询提示解析参数异常的问题,异常信息如下: org.springframework.expression.spel.SpelEvaluationException: EL1025E: The collection has '0' elements, index '0' is invalid at org.springframework.expression.spel.ast.Indexer$CollectionIndexingValueRef.growCollectionIfNecessary(Indexer.java:704) at org.springframework.expression.spel.ast.Indexer$CollectionIndexingValueRef.getValue(Indexer.java:667) at org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:92) at org.springframework.expression.spel.ast.SpelNodeImpl.getTypedValue(SpelNodeImpl.java:117) at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:308) at org.springframework.data.jpa.repository.query.QueryParameterSetterFactory$ExpressionBasedQueryParameterSetterFactory.evaluateExpression(QueryParameterSetterFactory.java:179) at org.springframework.data.jpa.repository.query.QueryParameterSetterFactory$ExpressionBasedQueryParameterSetterFactory.lambda$create$0(QueryParameterSetterFactory.java:164) at...

> ![jpaindex1](https://user-images.githubusercontent.com/38808188/122370156-6ebcb300-cf91-11eb-9be9-9c9b9dd1456c.jpg) > ![jpaindex2](https://user-images.githubusercontent.com/38808188/122370254-8136ec80-cf91-11eb-8279-7f5559bf4d1f.jpg) > 张哥,使用中遇到了参数是List 查询提示解析参数异常的问题,异常信息如下: > org.springframework.expression.spel.SpelEvaluationException: EL1025E: The collection has '0' elements, index '0' is invalid > > ``` > at org.springframework.expression.spel.ast.Indexer$CollectionIndexingValueRef.growCollectionIfNecessary(Indexer.java:704) > at org.springframework.expression.spel.ast.Indexer$CollectionIndexingValueRef.getValue(Indexer.java:667) > at...