0

ここで読んだミュールを運動しています

このサンプルを試してみたいと思います。プロジェクトを作成し、Mule Studio で Java クラスを作成した後、次のコードをコピーしました。

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 インポートが認識されていない ほぼすべての注釈は次のとおりです: 構成可能を型に解決できません ここに画像の説明を入力

4

1 に答える 1