2013-05-06 64 views
0

我在我的春天-beans.xml文件SFTP會話工廠

使用org.springframework.integration.sftp.session.DefaultSftpSessionFactory但它顯示在XML文件中的錯誤。

Multiple annotations found at this line: 
- Class 'org.springframework.integration.sftp.session.DefaultSftpSessionFactory' not 
    found 
- Class 'org.springframework.integration.sftp.session.DefaultSftpSessionFactory' not 
    found [config set: OnlineOrderAPI/web- context] 

你能幫我嗎?

回答

0

添加到您的pom.xml

 <dependency> <!-- necessary for using sftp --> 
     <groupId>org.springframework.integration</groupId> 
     <artifactId>spring-integration-sftp</artifactId> 
     <version>2.2.4.RELEASE</version> 
    </dependency> 

那麼你就準備走,如果不是,

右鍵單擊項目時,Maven,更新項目 清潔工程 重新啓動Eclipse 等等等等