Chinaunix首页 | 论坛 | 博客
  • 博客访问: 384271
  • 博文数量: 102
  • 博客积分: 1395
  • 博客等级: 中尉
  • 技术积分: 1050
  • 用 户 组: 普通用户
  • 注册时间: 2012-11-05 18:09
文章分类

全部博文(102)

文章存档

2013年(25)

2012年(77)

分类: Java

2012-12-21 19:43:19

Tomcat登录

编辑\tomact5.5\conf\tomact_user.xml

添加<user username="admin"password="admin"roles="admin,manager"/>

即可登录admin /admin

 

端口

/conf/server.xml68行,修改8080

 8080"protocol="HTTP/1.1"

数据库

Eclispe插件自动安装

Help > Software Updates > Manager Configuration

选择Add > Extension Location 找到你要安装插件的目录就可以了

手动安装直接解压

Featuresplugins目录中

Link

D:\Program Files\MyEclipse\eclipse\links下建立文件xxx.link

内容为path=D:/Program Files/MyEclipse/myeclipse

Ecilpse优化取消系统的自动折叠

Window->Preferences->Java->Editor->Folding:Enable folding

设置启动参数起动的时候

加上参数:eclipse.exe -vmargs -Xverify:none -XX:+UseParallelGC-XX:PermSize=20M 
-Xms64M -Xmx200M
如果你的内存是1G的。可以将最后一个参数Xmx200M改为 Xmx512M
这个在你的起动快捷键的属性里设置

取消自动validation

windows-->perferences-->myeclipse-->validation
除开Manual下面的复选框全部选中之外,其他全部不选

去掉不需要自动启动的项

Window > Preferences > General >Startup and Shutdown >

去掉拼写检查

Window > Perferences > General >Editors > Text Editors > Spelling > 去掉Enable spellchecking复选框的勾选。

设置工作空间的项目编码

Window - Preferences - General - Workspace 
"Text file encoding"选为"Other" -"UTF-8"

设置其它文件的编码

Window -> Preferences -> General-> Content Types 
将需要设置的文件设置编码最好统一设为UTF-8 
设置后Javascript文件可正常显示中文

JSP的默认编码设为UTF-8

Window -> Preferences -> MyEclipse-> Files and Editors -> JSP 
"Encoding"选为"ISO10646/Unicode(UTF-8)

 

去掉格式化JSP时页面中的空行

Window -> Preferences -> MyEclipse-> HTML -> HTML Source 
勾选"Clear all blank lines"

 

增强Eclipse的自动代码提示功能

1 . Window -> Preferences -> Java -> Editor ->Content Assist 
2. 
"Auto Activation triggers for java"设置为".abc"(默认是"."), "Apply"应用 
3. 
导出目前的Eclipse配置文件: File -> Export ->General -> Perferences, 选择保存路径保存得到*.epf文件 
4. 
用文本编辑器打开刚才保存的*.epf文件搜索".abc", ".abc"部分改为 
".abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ(," (
以上为自动提示的触发字符
根据个人习惯设置), 保存此配置文件(个人觉得不太好用,容易出错
5. 
导入此配置文件: File -> import -> General -> Perferences, 导入修改后的配置文件

 

关闭自动更新

1, Eclipse: 
Windows 
> Perferences> Install/Update -> Automatic Updates 
不勾选"Automatically find new updates and notify me"

2, Windows > Perferences> MyEclipse... -> Community Essentials 
&nb sp; 
不勾选"Search for new featuresat startup"

3, Windows > Perferences> MyEclipse... -> Maven4MyEclipse 
不勾选"Download repository index updates on startup"

 jretomcat路径安装svn
阅读(1346) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~