趁手的开发环境搭建

最近想自己做些东西了,算是作为一个尝试,方向是个人理财方面的。技术选用自己熟悉的Java

初步打算:

view层摒弃jsp,采用velocity,最近由于工作关系使用了一下velocity,感觉相当不错,决定用它代替jsp。

Ajax框架初步决定选用轻量级的jQuery

持久化层采用Hibernate,这个没有什么疑问。

IOC容器决定采用更加轻量级的Guice。

再加上Servlet做控制器,足够了。

摒弃Struts、Spring。做到轻量再轻量。

JDK:Jdk5.0
服务器采用Apache
数据库采用Mysql5.0
jsp/servlet容器初步决定使用Tomcat6.0

第一步搭建一个趁手的开发环境,有了好的开发环境,开发起来才能事半功倍。

以前我一直使用Eclipse3.2+myEclipse5.1,感觉速度稍慢,myEclipse体积太庞大了,有好多功能使用不到,

本着简单再简单,轻量再轻量的原则,决定采用光光的Eclipse3.3再加上一些插件来做开发环境:

基本的清单如下:

Eclipse3.3

tomcatPlugin:相当不错的Tomcat 插件,完全满足开发需求。

jsEclipse:js开发插件,试用了一下,完全满求开发需求。我用的是version 1.5.5

veloEclipse 一个相当不错的velovcity开发插件,提供了语法高亮显示、、语法自动缩进、语法自动补齐、Html预览等功能,开发velocity相当棒。

插件除了veloeclipse之外,全部采用link的方式安装,方便以后卸载。

而veloeclipse没有找到下载地址,只好采取在线安装的方式安装。

在线安装完veloeclipse之后,发现之前安装的jsEclipse找不到了,删除${eclipse.home}\configuration\org.eclipse.update,重新启动,就可以了。

暂时先用这些插件,以后需要用到别的,再安装。

安装完毕后设置一下eclipse启动参数:
D:\eclipse\eclipse.exe -vmargs -Xms128M -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M

主要是加大jvm内存,以及核心堆栈内容。

ok,启动eclipse,感觉比用myeclipse速度快多了!

哈哈,环境搭建完毕,开发进行Ing......

:Veloeclipse 说明:

Veloeclipse is a HTML/Velocity Editor for Eclipse, it is based on veloedit for velocity parsing and outline but adds all the html features you would d expect to find in a html editor

Features:

  • new XML support
  • new JSP(X) und JSTL support
  • new Jtidy integration
  • new convert your code to XHTML
  • new code folding
  • new compare dialog before commiting formatting or Jtidy changes
  • new code Formatting
  • User defined macros
  • Smart indentation of velocity directives ( on pressing return or when using tabs)
  • Smart indentation of html tags( on pressing return or when using tabs)
  • Syntax highlighting for both html and velocity
  • Autocompletion and Content assist for tags,directives and references (Ctrl + space in html attribute values or when opening or closing tags)
  • Preview html code
  • jumping to statring tag/directive when hovering on the closing tag/directive and then pressing Ctrl+Alt+ mouseclick
  • opening html definitions on tags when pressing Ctrl+Alt+ mouseclick

Installing:

Help -> Software Updates -> Find and Install... -> Search for new features to install -> Add Update Site... ->

Name : Veloeclipse

URL: http://propsorter.sourceforge.net/veloeclipse

Akmal Sarhan

Please note that it is only compatible with Eclipse 3.0, 3.1 M3 and higher






你可能感兴趣的:(趁手的开发环境搭建)