0
のこの種に適用できないI型溶接修飾子アノテーションは次のように宣言している:CDIのコンパイルの失敗 - 注釈宣言
@Stateless
public interface Responder {
/* Declares stuff */
}
資格の実装は次のとおりです。
@Qualifier
@Retention(RUNTIME)
@Target({Field, Method, Constructor})
public @interface AccountResponse {
}
マイBeanインタフェースはこれですこの:
@AccountResponse
public class AccountResponseResponder implements Responder {
/* Does stuff */
}
Mavenのコンパイラは(AccountResponseResponder.javaに)書かれています:
annotation type not applicable to this type of declaration
私には明らかなものがありませんが、それが私を逃しています。どんな助けもありがとう。