Spring 의 역할

1331 단어 SpringMVC
주해 적 의미
약자 형식 으로 이러한 약자 형식 을 수 동 으로 설정 할 수 있 고 약자 형식 은 초보 자 들 이 기본 설정 방안 을 신속하게 응용 할 수 있 습 니 다.Default Annotation Handler Mapping 과 Annotation MethodHandler Adapter 두 개의 bean 을 자동 으로 등록 합 니 다. spring MVC 는 @ Controllers 배포 요청 에 필요 합 니 다.또한 데이터 바 인 딩 지원, @ NumberFormattannotation 지원, @ DateTimeFormat 지원, @ Valid 지원, 읽 기 XML 지원 (JAXB), 읽 기 쓰기 JSON 지원 (Jackson) 을 제공 합 니 다.뒤에, 우리 가 aax 요청 에 응답 할 때, json 에 대한 지원 을 사 용 했 습 니 다.그 다음 에 action 에 JUnit 유닛 테스트 를 쓸 때 spring IOC 용기 에서 Default Annotation Handler Mapping 과 Annotation MethodHandler Adapter 두 개의 bean 을 가 져 와 테스트 를 완성 해 야 합 니 다. 가 져 갈 때 이 두 개의 bean 이 등 록 된 것 임 을 알 아야 합 니 다.
   declares support for general annotations such as  @Required@Autowired@PostConstruct , and so on.  is actually rather pointless. It declares explicit support for annotation-driven MVC controllers (i.e. @RequestMapping@Controller , etc), even though support for those is the default behaviour.
My advice is to always declare  , but don't bother with   unless you want JSON support via Jackson.

좋은 웹페이지 즐겨찾기