0
내가 뮬 을 행사하고 난 here어떻게이 코드를 복사 뮬의 라이프 사이클
난이 샘플을 시도하려는를 읽고 난 프로젝트를 생성하고 그 후 뮬 스튜디오 에서 자바 클래스를 생성을 활용 할 수 있습니다
를package org.mule.module.twilio;
import org.mule.api.annotations.Configurable;
import org.mule.api.annotations.Module;
import org.mule.api.annotations.Processor;
import org.mule.api.annotations.lifecycle.Start;
import org.mule.api.annotations.param.Optional;
import org.mule.api.callback.HttpCallback;
@Module(name = "twilio")
public class TwilioConnector {
/**
* The account sid to be used to connect to Twilio.
*/
@Configurable
private String accountSid;
/**
* The authentication token to be used to connect to Twilio
*/
@Configurable
private String authToken;
private TwilioClient twilioClient;
@Start
public void createTwilioClient() {
twilioClient = new TwilioClient(accountSid, authToken);
}
}
하지만 난 오류가 많이 있습니다 모든
The import org.mule.api.annotations.Configurable cannot be resolved
The import org.mule.api.annotations.Module cannot be resolved
The import org.mule.api.annotations.Processor cannot be resolved
The import org.mule.api.annotations.lifecycle cannot be resolved
The import org.mule.api.annotations.param.Optional cannot be resolved
The import org.mule.api.callback cannot be resolved
모든 clsaa 꼬마 도깨비를 당신이 당신의 클래스 경로에 mule devkit annotation jar를 추가나요 구성이 유형
나는 2libs 1 twilio - 자바 SDK-3.3.9.jar와 2 노새-devkit-annotations- 추가 3.3.0.jar 오류가 없습니다. 그러나이 클래스를 사용하는 방법은 없습니다. HTTP Endpoint와 Java 컴포넌트를 추가하여이 클래스와 함께 configure Java 컴포넌트를 추가합니다. 그러나 나는 어떤 결과도 가져 오지 않았다. 어떻게 결과를 볼 수 있습니까? – maryam
마지막 질문에 대한 답변을 업데이트했습니다 – genjosanzo
이 주제는 매우 크고 어렵습니다. ( – maryam