在eclipse中已经正确的配置DTD

snipaste_20190315_225739.png
并且xml的content assist也已经设置好

snipaste_20190315_225945.png
结果在编辑struts.xml时还是没有自动提示
后来发现,我默认用的是spket xml editor打开,把打开方式改为系统默认的XML Editor即可

image.png
在eclipse中已经正确的配置DTD
并且xml的content assist也已经设置好
结果在编辑struts.xml时还是没有自动提示
后来发现,我默认用的是spket xml editor打开,把打开方式改为系统默认的XML Editor即可