Eclipse遇到的问题的解决方案

1. 新建jsp文件总是以ISO8859-1编码的问题

       

2. Eclipse中SVN版本信息不显示的问题

打开 : windows ->preferences->General->Appearance->Lable Decorations 勾选其中的 SVN 项即可。如果是单个项目不显示,而不是所有的,则在eclipse里右键该项目->team->断开连接,然后再右键该项目->team->清理(或者直接断开连接时会有清理svn信息选择),然后删除项目(注意只是删除项目,而不勾选磁盘),然后再import导入就出现了

3. Eclipse设置类,方法注释模版

Window->Preference->Java->Code Style->Code Template->Comments

3.1 Files

/**  
* @Title: ${file_name}  
* @Package ${package_name}  
* @Description: ${todo}(用一句话描述该文件做什么)  
* @author ${user}  
* @date ${date}  
* @version V1.0  
*/

3.2 Types

/**  
* @ClassName: ${type_name}  
* @Description: ${todo}(这里用一句话描述这个类的作用)  
* @author ${user}  
* @date ${date}  
*  
* ${tags}  
*/

3.3 Fields

/**  
* @Fields field:field:{todo}(用一句话描述这个变量表示什么)  
*/

3.4 Constructors

/**  
* 创建一个新的实例 ${enclosing_type}.  
*  
* ${tags}  
*/

3.5 Methods

/**  
* @Title: ${enclosing_method}  
* @Description: ${todo}(这里用一句话描述这个方法的作用)  
* @param ${tags}    参数  
* @return ${return_type}    返回类型  
* @throws  
*/

3.6 Overriding methods

/**
* <p>Title: ${enclosing_method}</p>  
* <p>Description: </p>  
* ${tags}  
* ${see_to_overridden}  
*/

3.7 Delegate methods

/**  
* ${tags}  
* ${see_to_target}  
*/

3.8 Getters

/**
 * @return the ${bare_field_name}
 */

3.9 Setters

/**
 * @param ${param} the ${bare_field_name} to set
 */

4. 在Debug模式下调试代码,在源码特定行打上了断点,进行用例测试,结果弹出“Source not found.”的窗口提示

   如果是java,则选择工程目录下的src;如果是jsp,则选择工程目录下的webapp;

解决Eclipse调试代码弹出

5. 修改js/jsp/java文件的字符编码

6. JBoss在Eclipse中的默认部署路径

项目路径\.metadata\.plugins\org.jboss.ide.eclipse.as.core\JBoss_AS_4.01603712296328\deploy\ZiDongEar.ear

D:\eclipseWorkSpace\HaiYi_WangYinZhiLingZiDongJieShou\.metadata\.plugins\org.jboss.ide.eclipse.as.core\JBoss_AS_4.01603712296328\deploy\ZiDongEar.ear

7. SVN导致Eclipse闪退

8. 如何从Eclipse中删除未使用的导入

 


版权声明:本文为qq_30426943原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。