在eclipse中创建maven webapp项目时报错: Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:1.0 from any of the configured repositories. 问题产生原因:是因为本地仓库中缺少了maven-archetype-webapp包,也可能这个包下载不完全,比如:只有pom文件,或只有jar包文件等 [包路径为:C:\Users\xxx…
eclipse中xml文件格式化(ctrl+shift+f),可能会发现格式化xml文件后很乱,如图: 这不是我想要的样子,我想要的是这样的: 解决办法:windows -> Perferences ->XML -> XML Files ->Editor Line Width:设置每行字符数 Split multiple attributes each on a new line:标签属性单独一行显示 一般,行字符数根据需要设置.然后去除标签单独显示复选框即可.…