下載
版本:MyEclipse2017 Stable 2.0
百度網(wǎng)盤鏈接:https://pan.baidu.com/s/1vpIMKq9FfMMbhXzkmft_8A 密碼:xfbv
myeclipse2017 stable 2.0 破解包網(wǎng)盤鏈接:https://pan.baidu.com/s/1UoIbtIoYjAC_dA4pKtba9Q 密碼:e6s8
破解步驟
把補(bǔ)丁包里面patch下的所有文件覆蓋到你myeclipse安裝路徑下的plugins目錄;
斷開網(wǎng)絡(luò),雙擊打開crack.bat文件;
-
按照下圖順序依次操作:
[圖片上傳失敗...(image-d34919-1530790658560)]
-
打開myeclipse查看激活情況,如圖為激活成功:
image
激活失敗原因分析
- 沒(méi)有斷網(wǎng)激活,卸載之后重新激活;
- 激活補(bǔ)丁和myeclipse版本不對(duì),重新下載補(bǔ)丁文件;
設(shè)置maven加速下載
為了提高maven創(chuàng)建項(xiàng)目的速度,可以更新maven源為阿里云的,配置文件可以在myeclipse里面可以找到:Window => Preferences => 搜索輸入“maven”,點(diǎn)擊User Settings看到,如圖:

如果找不到這個(gè)文件可以手動(dòng)創(chuàng)建,更換的配置文件如下:
<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- 這個(gè)是配置阿里Maven鏡像 -->
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
<profiles>
<profile>
<id>jdk-1.8</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>
<profile>
<id>nexus</id>
<repositories>
<repository>
<id>central</id>
<url>http://repo.maven.apache.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>ansj-repo</id>
<name>ansj Repository</name>
<url>http://maven.nlpcn.org/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>nexus</activeProfile>
</activeProfiles>
</settings>
設(shè)置代碼提示
MyEclipse默認(rèn)情況下,只有輸入“.”的時(shí)候才會(huì)有代碼提示,如果需要輸入任何信息都有代碼提示的話,需要手動(dòng)修改配置:
Window => Preferences => Java => Editor => Content Assist 設(shè)置Auto activation triggers for Java內(nèi)容為“.abcdefghijklmnopqrstuvwxyz(,” => 保存退出.
如圖:
[圖片上傳失敗...(image-df1f24-1530790658560)]
自動(dòng)格式化代碼
myeclipse還可以設(shè)置保存文件自動(dòng)格式化代碼,這個(gè)功能我是很喜歡的,配置完效果如下:
[圖片上傳失敗...(image-9e487f-1530790658560)]
手動(dòng)配置:
Window => Preferences => Java => Editor => Save Actions => 選中前2項(xiàng),其中第2項(xiàng)選擇第1個(gè)選項(xiàng) => 保存退出.
如圖:
[圖片上傳失敗...(image-9a0e1b-1530790658560)]
常用快捷鍵
Alt+/ 代碼提示
Ctrl+O 檢索類里面的方法
Ctrl+E 檢索切換類視圖
Ctrl+/ 代碼注釋
Ctrl+M 代碼窗口最大化
Ctrl+1 顯示報(bào)錯(cuò)解決方案
Ctrl+Shift+F 格式化代碼
F3 查找類/變量定義
F5 調(diào)試進(jìn)入方法中
F6 單步執(zhí)行
F11 啟動(dòng)調(diào)試
使用maven創(chuàng)建項(xiàng)目
maven是java界優(yōu)秀的項(xiàng)目構(gòu)建和依賴管理工具,我們使用maven來(lái)簡(jiǎn)單的創(chuàng)建一個(gè)項(xiàng)目,學(xué)習(xí)一下maven的使用。
關(guān)于安裝:好的一點(diǎn)是使用myeclipse會(huì)幫你把maven插件安裝好,如果你使用的是eclipse的話需要自己手動(dòng)去裝。
創(chuàng)建分為3步:
- 創(chuàng)建項(xiàng)目選擇Maven Project;
- 點(diǎn)擊兩次Next之后,選擇maven-archetype-quickstart;
- 填寫項(xiàng)目的基本信息:GroupId組id,可以重復(fù);ArtifactId:項(xiàng)目id,不可用重復(fù);Package:包名,可以重復(fù)。
如圖所示:




如上所示一個(gè)簡(jiǎn)單的Hello World就完成了。
添加依賴jar包
使用maven就不用苦苦在網(wǎng)上找jar包了,只需要在項(xiàng)目的根目錄pom.xml配置之后會(huì)自動(dòng)下載jar包,示例配置如下:
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.1.1</version>
</dependency>
- groupId:所需Jar包的項(xiàng)目名
- artifactId:所需Jar包的模塊名
- version:所需Jar包的版本號(hào)
更多使用心得,后續(xù)文檔更新。
