編輯 Spring XML 時按 Alt+/ 無提示,需在 XML Catalog 映射命名空間至本地 XSD。
Location: D:\baiduyun\Spring\spring_doc\soft\spring-framework-2.5.6\dist\resources\spring-beans-2.5.xsd
Key Type: Schema Location
Key: https://www.springframework.org/schema/beans/spring-beans-2.5.xsd
在 <beans> 標籤內按 Alt+/,出現 bean、property 等元素提示,屬性名、ref 等屬性同理。
同理添加 spring-context、spring-tx、spring-aop 等命名空間 XSD,實現全套 Spring XML 智能提示。