2017-03-23 5 views
0
내가 보안 XMPP 연결을 만들려면

, 나는이사전 XMPP 연결 - SASLAuthentication,의 SocketFactory

<bean id="xmppConnection" class="o.s.i.xmpp.XmppConnectionFactoryBean"> 
    <constructor-arg> 
     <bean class="org.jivesoftware.smack.ConnectionConfiguration"> 
      <constructor-arg value="myServiceName"/> 
      <property name="truststorePath" value="..."/> 
      <property name="socketFactory" ref="..."/> 
     </bean> 
    </constructor-arg> 
</bean> 

종속에게

dependencies { 

    compile("org.springframework.boot:spring-boot-starter-web") 
    compile("org.springframework.integration:spring-integration-xmpp:4.3.8.RELEASE") 

    testCompile("junit:junit") 
} 

을 시도하지만 클래스 o.s.i.xmpp.XmppConnectionFactoryBean를 찾을 수 없습니다. 다른 종속성을 포함해야합니까?

답변

1

문서의 서식 때문에 패키지가 축약되었습니다. 실제 클래스 이름은

org.springframework.integration.xmpp.config.XmppConnectionFactoryBean 

입니다. 이것은 in the documentation입니다. 어떤 경우에는이 책

에서

1. 규칙은, 긴 완전한 클래스 이름을 지정하는 경우, 포맷을 지원하기 위해, 우리는에서와 같이 o.s.io.sorg.springframework.integration에 패키지 org.springframework을 단축 o.s.i.transaction.TransactionSynchronizationFactory.

클래스 이름을 입력 할 때 IDE content assist (eclipse, IDEA)를 사용하면 패키지가 완성됩니다.