Java Annotation (1) 썸네일형 리스트형 Java Annotation Java에서 @를 가진 식별자는 컴파일러가 애너테이션으로 해석한다. 애너테이션은 메서드, 생성자, 필드, 클래스 뿐만 아니라 매개변수, 예외처리 또는 흔하지는 않지만 코드 내 위치에 나타내게 된다.@Servicepublic class HttpService implements RemoteService { @NonNull private final Integer port; @Autowired public HttpService(@Qualifier("port") Integer port) {this.port = port;} @Override Response sendRequest(String req) throws @Critical NetworkException{}}위와 .. 이전 1 다음