1. 下載原始的MyBatisPlus Plugin插件。
2. 下載替換包,請根據實際版本下載: https://github.com/myoss/profile/tree/master/idea/plugin/MybatisPlugin
3. 參考文檔進行使用,文檔 “Mybatis-Plugin插件學習使用方法”進行使用,分為Windows和Mac不同的系統。
Code
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
針對於windows系統中
1、下載v2. 51~v2.53中的class文件 2、進入到本地Idea插件配置目錄 C:\Users\你的賬戶目錄\.IntelliJIdea15\config\plugins\mybatis_plus\lib 3、用WinRAR打開mybatis_plus.jar 4、根據class文件的路徑將mybatis_plus.jar中的class替換掉 5、重啟Idea,完畢。 windows測試通過的環境: windows 8. 1 & windows 7, IntelliJ Idea 15. 0. 1 對於mac os中(linux系統中應該類似,我沒有驗證,如果有兄弟驗證過還請告訴我,感謝),對於mac os目錄不一致的問題,還得感謝 @xinshitn 同學的提問,今晚上折騰了幾個小時把虛擬環境弄好,找到了他PC機上出現問題的原因,歡迎大家提問題。 1、使用find命令在你的用戶目錄下查找mybatis_plus.jar這個文件(前提你沒有更改過IntelliJ Idea的配置目錄,如果更改了從根目錄下查找吧,花費的時間可能會多點) JerryMac:~ jerry-osx-m$ find ~ -name "mybatis_plus.jar" /Users/jerry-osx-m/Library/Application Support/IntelliJIdea15/mybatis_plus/ lib/mybatis_plus.jar 2、你找到了mybatis_plus.jar這個文件的位置之后,將對應版本中的com目錄拷貝到mybatis_plus.jar同級目錄,輸入命令將com目錄壓縮進mybatis_plus.jar中。 jar uvf mybatis_plus.jar com 3、重啟Idea,完畢。 mac os測試通過的環境: OS X Yosemite 10. 10, IntelliJ Idea 15. 0. 1 如果你按以上操作完成之后,功能上可以使用,但是會出現以下提示信息: Mybatis Plugin is not activated yet. Click here to enter your license key to activate the plugin. You can also click here to purchase a license key to sponsor us making the plugin better. More features are on their way. Wish you happy coding with the plugin 請使用文件夾“替換之后如果還有提示,請替換這個文件夾的內容”中的內容替換,目前只有 @xinshitn 同學反映他在mac os下出現此問題,故單獨放在文件夾,如果普遍出現此情況,還煩請同學們給我反映 |