[java][ide][sts] 使用配置

Preferences
	General
		Appearance
			Colors and Fonts - Basic - Text Font - Edit, 字体Courier New, 字号随便
		Workspace - Text file encoding 设置成 UTF-8
		Content Types - Text - 设置成 UTF-8
		Editors
			Text Editors
				Spelling - 去掉对勾 Enable spell checking
	Web
		JSP Files - Encoding 设置成 UTF-8
	Maven - 勾选 Download Artifact Sources 和 Download Artifact javaDoc
		Installations - 添加自己的Maven
		User Settings - 更新 Global Settings 和 User settings
	Java
		Editor
			Content Assist - Auto activation tirggers for Java 里替换内容为 .abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
			Save Action - 勾选全部(Format all lines)
				Configure
					Code Orginazing
						勾选 Remove trailing whitespace(All lines) 和 Correct indentation
					Code Style
						勾选 Use blocks in if/while/for/do statements(Allways)
					Unnecessary Code
						勾选 Remove unused imports, Remove unnecessary '$NON-NLS$' tags, Remove redundand type arguements(1.7 or higher)
		Installed JREs - 添加自己的JDK
		Code Style
			Code Templates - Comments - Types - 可以使用 ${currentDate:date('yyyy-MM-dd HH:mm:ss.SSS')} 代替 ${date} 和 ${time}, 且可以自定义格式
			Formatter - 代码格式化配置, 最好设置成保存时自动格式化(碰到不想格式化时,可以保存后按Ctrl+Z回退一下再保存)
		Compiler - 勾选 Store Infomation about method parameters(开启JDK8反射获取方法参数名的功能)
	Server
		Runtime Environments - 添加自己的Tomcat
	Validation - 勾选 Suspend all validations
[formatter.xml]

需要安装插件
properties editer, lombok, MyBatipse, emmet(http://download.emmet.io/eclipse/updates/), subclipse(http://subclipse.tigris.org/update_1.10.x)

在Tomcat中的conf/server.xml中的中添加两个设置
useBodyEncodingForURI="true" //设置POST和GET使用相同编码
URIEncoding="UTF-8" //对URI使用utf-8编码处理

[formatter.xml]

需要安装插件
properties editer, lombok, MyBatipse, emmet(http://download.emmet.io/eclipse/updates/), subclipse(http://subclipse.tigris.org/update_1.10.x)

在Tomcat中的conf/server.xml中的<Connector>中添加两个设置
useBodyEncodingForURI="true" //设置POST和GET使用相同编码
URIEncoding="UTF-8" //对URI使用utf-8编码处理

posted @ 2018-03-28 17:06  mrathena  阅读(312)  评论(0编辑  收藏  举报