今天的错误是这个:java.lang.IllegalStateException: For queries with named parameters you need to use provide names for method parameters. Use @Param for query method parameters, or when on Java 8+ use the javac flag -parameters.
大致的意思是:对于带有命名参数的查询,需要为方法参数提供名称。使用@Param作为查询方法参数,或者在Java 8+上使用javac标志-parameters。
解决方案就是:你在使用sql的时候 Dao层,没有使用@Param进行参数 参数命名。