原因: MyEclipse 預設綁定衝突或編輯器模式異常。
解決: Window → Preferences → General → Keys 搜尋 Shift+Enter,確認綁定為 Insert Line Below Current Line;若無效,嘗試 Restore Defaults 或改用 Ctrl+Shift+Enter(預設向上插入行)。
核心原則: 全鏈路 UTF-8 — 專案編碼、檔案編碼、資料庫連線、伺服器 URI 編碼、瀏覽器解碼,任一環節不一致即亂碼。
Properties → Resource → Text file encoding → UTF-8。<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>。CharacterEncodingFilter (Spring) 或自訂 Filter 強制 request.setCharacterEncoding("UTF-8")。<Connector URIEncoding="UTF-8" ... />。?characterEncoding=utf8&useSSL=false;Oracle 確認 NLS_LANG 環境變數。Content-Type: text/html;charset=UTF-8。建議升級: MyEclipse 2015 Stable 2 以上版本大幅改善驗證器準確度與效能。
快速修復:
Project → Clean → Clean all projects 重建索引。.metadata/.plugins/org.eclipse.jdt.core 目錄後重啟(慎用,會清除所有 Java 模型快取)。Preferences → Validation 取消勾選 Classpath Dependency Validator 等非必需項。MyEclipse 屬商業收費產品,更新較慢。建議新專案直接使用 IntelliJ IDEA Ultimate 或 Eclipse IDE for Enterprise Java Developers (最新版) + Spring Tools 4 外掛,獲得更佳的 Maven/Gradle 整合、熱部署與程式碼補全體驗。