前言
MyBatis plugin特點:https://plugins.jetbrains.com/plugin/7293-mybatis-plugin
- Compatible with both IDEA ultimate and community edition.
- Code completion, syntax highlighting.
- Smart SQL parameter completion based on SQL statement context.
- Navigation (Jump to symbol, Find Usages, Refactoring)
- Introduce custom ‘Mybatis Parameter’ language to support Mybatis parameter expression.
- Generate Mapper XML, SQL statement, statement declaration on the fly.
- Generate SQL statement corresponding to Spring Data Jpa Specification.
- Integrate with DataSource in IDEA.
- Many useful code inspections with helpful quick fixes.
- Many useful intention actions to make it easier to write code.
- OGNL support.
- Annotation support.
- Spring support.
- Spring Boot support.
- Mybatis generator support.
翻譯:
該插件提供了以下特性:
- 相容IDEA終極版和社群版。
- 代碼完成,文法高亮。
- 基于SQL語句上下文的智能SQL參數完成。
- 導航(跳轉到符号,查找用法,重構)
- 引入自定義的“Mybatis參數”語言來支援Mybatis參數表達式。
- 生成Mapper XML,SQL語句,語句聲明。
- 在IDEA中與配置的DataSource內建。
- 許多有用的代碼檢查與有益的快速修複。
- 許多有用的意圖行動,使編寫代碼更容易。
- OGNL支援。
- 注釋支援。
- Spring的支援。
- Spring Boot支援。
過程
1.下載下傳zip檔案
連結:https://pan.baidu.com/s/1jbRrpzaxjeX4iJ-s91bBBg 密碼:zzzp
2.導入到IntelliJ IDEA
注意:
1.該插件收費,是以用綠色免安裝方法,僅供學習交流使用
2.mybatis版本可能會有不适用,最好使用mybatis版本發行日期早于IntelliJ IDEA日期的插件,否則會出現如下錯誤:Plugin ‘MyBatis plugin’ is incompatible with this installation