1.导入源码
在编辑页面中点击方法,点击接口或类图标
弹出 class file editor 页面–>Attach Source–>E xternal file找到源代码jar包–>Ok
2.使用junit
(1)myEclipse自带junit
window–>prefences–>java–>junit–>apply–>ok
点击项目–>build path–>add libraries–>junit–>ok
(2)应用junit
创建单独包存test类:new–>others–>source folder–>取名
创建test类:点击要测试的类new–>others–>junit test case–>更改放置位置,选择测试方法
3.java 自动提示
window–>Preferences–>java–>Editor–>Content Assist–>右边的“Auto-Activation”–>下面的“Auto Activation triggers for java”这个选项。(其实就是指触发代码提示的就是“.”这个符号)“.”右加“,abcdefghijklmnopqrstuvwxy”–>apply
4.xml代码自动提示
window–>Preferences–>myEclipse–>files and editers–>XML–>xml catalog –>添加 user libraries–>add–>file System–>找到dtd文件路径–>public id为-//mybatis.org//DTD Config 3.0//EN或url为http://mybatis.org/dtd/mybatis-3-config.dtd–>apply–>ok
5.设置编码
window–>Preferences–>general–>workspace–>gdk改成utf-8
6.mysql数据库连接
保持mysql数据库处于登陆状态
window–>Open Perspective–>MyEclipse Database Explorer
在空白处右击鼠标新建(即new)
7.导入项目
在目录区域点击右键,选择import–>Exiting Projects into Workbence–>Next–>Browse,选择你的项目文件所在目录–>finish