[英]Enable Spring Project Nature in STS 4 to fix XML Schema problems
我想申請中提到的解決方案(正確的XML架構分辨率) 這里需要我,使Spring項目的性質在現有的項目中STS 4。根據這個 ,就不會有春天工具上下文菜單中哪一個能做到“ Spring Tools-> Add Spring Project Nature” 。 我沒有看到該菜單:
我的.project
文件已經具有以下內容:
<natures>
<nature>org.springframework.ide.eclipse.core.springnature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
</natures>
我想念什么?
更新:
根據馬丁的第二條評論,以下內容有效:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xmlns:int="http://www.springframework.org/schema/integration"
xmlns:int-jdbc="http://www.springframework.org/schema/integration/jdbc"
xmlns:jdbc="http://www.springframework.org/schema/jdbc"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-5.0.xsd
http://www.springframework.org/schema/integration/jdbc http://www.springframework.org/schema/integration/jdbc/spring-integration-jdbc.xsd
http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd">
您所使用的Spring Nature功能在您似乎正在使用的STS4公開beta中不再存在。 因此,上下文菜單中不再有提供“春季自然”的“春季”部分。 在STS4中不再不再需要它了。
這里的問題是:您到底想在STS4中做什么而不起作用? 如果您希望STS4從STS3中找回某些奇怪的東西並丟失,您應該在https://github.com/spring-projects/sts4/issues上提出一個問題,並附加一個示例項目,該項目可重現基礎問題。 那我很樂意進行更詳細的介紹。
解決方法是,您可以返回並下載最新的STS 3.9.2發行版,然后從那里進行工作,它仍然包含所有舊功能。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.