天天看点

环境搭建、部署备忘

General > Startup and Shutdown : 移除所有在启动时加载的插件。

General > Editors > Text Editors > Spelling : 关闭拼写检查。

Install/Update > Automatic Updates > 取消勾选“Automatically find new updates and notify me”。

<a target="_blank" href="http://www.importnew.com/13942.html">将JDK放到 RAM,300MB就足够</a>

运行 D:\sync\dev\eclipse\eclipse.exe -vm D:\sync\dev\jdk1.7.0_60\bin

设置 utf-8

设置 less 格式关联 css:

环境搭建、部署备忘

新建目录 public、public\gallery

设置 Class 默认编译输出的目录,WEB-INF/Classes 到源码导出 for FTP,设置 svn 设置 svn ps:ignore classes . 忽略提交 SVN

设置 Bigfoot/Tags Link 源码:

环境搭建、部署备忘

设置 WEB-INF/src 为项目源码

Ignore SVN files when exporting a WAR file from Eclipse:Enter the project properties &gt; Resource &gt; Resource Filters &gt; Add... &gt; Exclude All &gt; Files and Folders &gt; All children (recursive) &gt; Name matches *.svn &gt; OK.

环境搭建、部署备忘

设置 META-INF 配置文件、数据库

-----------------------------

所有 link files,包括 tags files 打包 war 即可

tomcat 下面的jar 包,例如 sqlite 驱动: Project Properties -&gt; Deployment Assembly; Add -&gt; Java Build Path Entries; You should now see the list of libraries on your build path that you can specify for inclusion into your finished WAR.; Select the ones you want and hit Finish.;

是否处于测试模式(通过检测 tomcat 是否存在 80 端口确定)

请求的接口本地地址 灵活定义,根据 Config.isDebug 决定

ServiceLayer JS Engine 

less 样式转换为 css(须手动更新)

SQLite 数据源(可依据 Config.isDebug 决定)

静态 js 更新:vps.ajaxjs.com(手动更新)

------------------------------------------------------------------

平台差异:

File.separator

linux 下没有 localhost

dtd验证是xml的规范,要去除警告的话:工具栏:windows =&gt; preferences =&gt; xml =&amp;gt; xml files =&gt; validation =&amp;gt; Indicate when no grammar is specified:选择Ignore即可。

导入 User Libray

然后,项目属性中 Deployment Assembly ---&gt; buildpath entries.为什么?因为WebappClassLoader加载器专门负责加载webapps下面各个web项目的WEB-INF下的类库。而我们通过user library引入的jar包自然不会被WebappClassLoader加载器加载,所以必然会报ClassNotFoundException

环境搭建、部署备忘

配置如下:

jsp utf-8 编码