环境设置问题

1.使用idea创建xml文件方法:

打开设置弹窗 方法:点击file--otherSetting--Default Setting(快捷键Ctrl+Alt+s)。

在搜索框输入template在左侧菜单栏找到并选中File And Code Templates。

右侧选中file标签。

点击绿色加号+添加模板。

name无所谓,extension写xml,然后添加上内容。

最后把enable live Template(**模板)勾选上。

大功告成。

附图:

环境设置问题

2.DEA正确设置编码统一为UTF-8:

File -> Settings->File Encodings -> Defaule encoding for properties files 属性设置成utf-8 

选中Transparent native-to-ascii conversion