90_nk
90_nk

Reputation: 11

Why can't I correctly use ibatis

I already induct the dependency of Mybatis, in way of pom. The part of the pom be like:

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

But while I am importing the package like:

import org.apache.ibas.annotations.Mapper

IDEA says "can't resolve symbol "ibatis"" And while I run the program, the terminal says package org.apache.ibatis.annotations doesn't exist

How can I fix this? The dependency of mybatis-spring-boot-starter should involve package org.apache.ibatis.annotations. Why can't it work?

I know I can use the dependency of ibatis-core instead, but is there any diffenrence between the two? Because actually I'm confronted with some other Error if I induct the dependency off ibatis-core like:

<dependency>
<groupId>org.apache.ibatis</groupId>
<artifactId>ibatis-core</artifactId>
<version>3.0</version>
</dependency>

Thank u for ur Patience and making my day. I will be quite happy if u can provide me with ur selfless help :)

I have tried using maven clean and install, but it doesn't work

Upvotes: 1

Views: 289

Answers (0)

Related Questions