Spring 의 역할
약자 형식 으로 이러한 약자 형식 을 수 동 으로 설정 할 수 있 고 약자 형식 은 초보 자 들 이 기본 설정 방안 을 신속하게 응용 할 수 있 습 니 다.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.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
[MeU] Hashtag 기능 개발➡️ 기존 Tag 테이블에 존재하지 않는 해시태그라면 Tag , tagPostMapping 테이블에 모두 추가 ➡️ 기존에 존재하는 해시태그라면, tagPostMapping 테이블에만 추가 이후에 개발할 태그 기반 ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.