컨트롤단에서 @IncludedInfo 정보를 알아낼 수 있는 방법은 ?
- 작성자 :
 - 조*형
 
- 작성일 :
 - 2012-06-28 11:21:52
 
- 조회수 :
 - 2,832
 
- 구분 :
 - 공통컴포넌트
 
- 진행상태 :
 - 완료
 
					Q
					@IncludedInfo(name="게시판사용정보", order = 190 ,gid = 40)
@RequestMapping("/cop/com/selectBBSUseInfs.do")
public String selectBBSUseInfs(@ModelAttribute("searchVO") BoardUseInfVO bdUseVO, ModelMap model) throws Exception {
}
위와 같은 코드가 있을 때 어노테이션 IncludedInfo정보를 알아낼 방법이 있을까요
				
					@RequestMapping("/cop/com/selectBBSUseInfs.do")
public String selectBBSUseInfs(@ModelAttribute("searchVO") BoardUseInfVO bdUseVO, ModelMap model) throws Exception {
}
위와 같은 코드가 있을 때 어노테이션 IncludedInfo정보를 알아낼 방법이 있을까요
						A
						
							
							
								안녕하세요. 조재형님..
다음과 같이 reflection을 사용하시면 annotation 정보를 가져오실 수 있습니다.
String name = MyClass.class.getAnnotation(IncludedInfo.class).name();
int order = MyClass.class.getAnnotation(IncludedInfo.class).order();
그럼.. 즐거운 하루되십시오.
감사합니다.
				
			다음과 같이 reflection을 사용하시면 annotation 정보를 가져오실 수 있습니다.
String name = MyClass.class.getAnnotation(IncludedInfo.class).name();
int order = MyClass.class.getAnnotation(IncludedInfo.class).order();
그럼.. 즐거운 하루되십시오.
감사합니다.
