【问题标题】:It is indirectly referenced from required .class files它是从所需的 .class 文件中间接引用的
【发布时间】:2016-12-27 06:07:28
【问题描述】:

org.springframework.dao.InvalidDataAccessApiUsageException 类型无法解析。

它是从所需的 .class 文件中间接引用的(错误在第一行代码中)。

我还没有导入org.springframework.dao.InvalidDataAccessApiUsageException仍然显示错误。

(Error) /**
 *@author Infosys
 *Create Date   Created on Nov 23, 2011 
 *Sr.No.    Modification Date       Modified By             Reason
 * 1.0      11/28/2011              Vasu Rathore            Initial code for P8344b
 */

package com.aetna.channel.catsIntake.common.util.sp;


import java.sql.Types;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.sql.DataSource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jdbc.core.SqlOutParameter;
import org.springframework.jdbc.core.SqlParameter;
import org.springframework.jdbc.object.StoredProcedure;
import com.aetna.channel.catsIntake.caseId.spAdapters.ComplaintAndAppealCaseIdGenSP;
import com.aetna.channel.catsIntake.common.exceptions.CatsControllerException;
import com.aetna.channel.catsIntake.common.exceptions.CatsDatabaseException;
import com.aetna.channel.catsIntake.common.exceptions.CatsExceptionConstants;
import com.aetna.channel.catsIntake.common.exceptions.CatsIntakeSvcDAOException;
import com.aetna.channel.catsIntake.common.exceptions.CatsInvalidInputException;
import com.aetna.channel.catsIntake.common.exceptions.CatsNoDataFoundExeception;
import com.aetna.channel.catsIntake.common.util.dao.CatsLookUpDao;

【问题讨论】:

  • 发布代码会更有帮助...
  • 问题是什么?请给我们完整的堆栈跟踪。你的依赖是什么?到目前为止,我们只能为您读取异常。

标签: spring spring-mvc spring-data spring-integration


【解决方案1】:

org.springframework.dao.InvalidDataAccessApiUsageException 包含在 spring-tx-<version>.jar 中,因此您可能缺少该依赖项。

【讨论】:

    【解决方案2】:

    我在 Spring 项目中遇到了同样的错误,我添加了解决我的问题的 spring jdbc 依赖项。

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-jdbc</artifactId>
        </dependency>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-05-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-05
      • 2013-05-14
      • 2017-02-26
      • 2016-10-31
      相关资源
      最近更新 更多