mybatis查询sql的问题,java.util.NoSuchElementException

有人见过这个问题吗,sql都从mapper打印出来了 最后没办法写成全表查询都出不来

Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@6d70e68b] was not registered for synchronization because synchronization is not active
JDBC Connection [org.apache.shardingsphere.driver.jdbc.core.connection.ShardingSphereConnection@428e9be2] will not be managed by Spring
==> Preparing: select file_id,group_name,remote_file_name,file_sign,origin_file_name,create_time,ext_name from file_fastdfs
==> Parameters:
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@6d70e68b]

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:

Error querying database. Cause: java.util.NoSuchElementException

The error may exist in file [D:\zgrs\file-service\file-provider\target\classes\mapper\FileFastDFSMapper.xml]

The error may involve defaultParameterMap

The error occurred while setting parameters

SQL: select file_id,group_name,remote_file_name,file_sign,origin_file_name,create_time,ext_name from file_fastdfs

Cause: java.util.NoSuchElementException

  1. 仔细检查你的FileFastDFSMapper.xml 文件中的defaultParameterMap的参数匹配应该存在不一致的问题。
  2. 要学会抓住日志的关键词,从而更快速的定位问题