728x90
반응형
@Controller : 해당 클래스가 컨트롤러의 기능을 수행한다.
@ RequestMapping( "URL" ) : URL과 메서드를 매핑하는 역할.
@ResponseBody : 메서드의 응답결과가 문자열 그 자체임.
출처 : https://wikidocs.net/160444
1-04 스프링부트 맛보기
`[완성 소스]` : [https://github.com/pahkey/sbb/tree/1-04](https://github.com/pahkey/sbb/tree/1-04) ...
wikidocs.net
728x90
반응형
'JAVA > SPRINGBOOT' 카테고리의 다른 글
[SPRINGBOOT] RequestBody / RequestParam (0) | 2022.08.08 |
---|---|
[SPRINGBOOT] 스프링부트의 구조 (0) | 2022.07.25 |
[SPRINGBOOT] 스프링부트 도구 설치 (0) | 2022.07.08 |
[SPRINGBOOT] 빌드관리도구 maven 과 gradle (0) | 2022.06.26 |
[springboot][thymeleaf] thymeleaf:fragment (0) | 2022.04.25 |