GithubHelp home page GithubHelp logo

Comments (9)

kookob avatar kookob commented on June 12, 2024

@shuaicj 你这个问题是另一个插件的吗?我的这个插件没你说的这个功能,是不是提错地方了?

from mybatis-log-plugin.

kookob avatar kookob commented on June 12, 2024

@shuaicj 你请求的那个Pull requests已经合并,下个版本有发布时,才会更新哦。

from mybatis-log-plugin.

kookob avatar kookob commented on June 12, 2024

@shuaicj 捐赠已收到,非常感谢你的祝福和支持。

from mybatis-log-plugin.

shuaicj avatar shuaicj commented on June 12, 2024

@kookob 应该是你插件的功能,我没有装其他mybatis插件。比如mapper xml中如果引用了一个type:

  • 如果xml中写全称type="shuaicj.example.mybatis.domain.User",这种显然没有问题。
  • 如果xml中写别名type="User",并在User类上加上@Alias("User"),这种也不会有问题。
  • 如果xml中写别名type="User",并在spring boot的配置application.yml中写上mybatis.typeAliasesPackage: shuaicj.example.mybatis.domain,这个是mybatis-spring-boot支持的配置,可以把指定包下面的类全部加上mybatis alias,参见mybatis-spring-boot-starter。这种情况下代码是可以运行的,但打开xml时intellij会在type="User"下标红,表示找不到这个type。确定不是这个插件的功能?因为我关闭插件这里就不会标红。

from mybatis-log-plugin.

shuaicj avatar shuaicj commented on June 12, 2024

具体可以试试我的demo https://github.com/shuaicj/spring-boot-mybatis-example

from mybatis-log-plugin.

kookob avatar kookob commented on June 12, 2024

@shuaicj 插件没这功能。为什么关闭插件就不会标红,这我也搞不清楚了。
标红是intellij默认检测级别的功能,你可以照着下图设置一下看看:
image

from mybatis-log-plugin.

kookob avatar kookob commented on June 12, 2024

image
我试了你说的配置,也没标红

from mybatis-log-plugin.

shuaicj avatar shuaicj commented on June 12, 2024

找到原因了,是另一个插件'Free MyBatis Plugin',我的锅。。。

from mybatis-log-plugin.

kookob avatar kookob commented on June 12, 2024

OK

from mybatis-log-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.