본문 바로가기

JAVA - Backend/SpringBoot - ApplicationFramework

(12)
Spring WebMVC Structure Concept 참고: https://onlyformylittlefox.tistory.com/category/Develop/Server 'Develop/Server' 카테고리의 글 목록 흔한 개발자의 발자취 onlyformylittlefox.tistory.com Controller URL(Request) Mapping Class 사용자가 브라우져에서 특정 URL로 요청한 Request를 메소드에 Mapping 하여 처리할 수 있도록 하는 역할 @Controller 스프링 컨텍스트에 Bean으로 등록될 수 있도록한다. @RestController 응답을 View가 아닌 응답 본문에 직접 씀 객체의 경우 httpmassageconverter를 통해 JSON 반환 @ResponsBody @Controller에서 특정 메서드만..
Oracle DB 설정 Gradle : // DB Connection (HikariCP - Connection Pool 포함) implementation 'org.springframework.boot:spring-boot-starter-jdbc' // Oracle JDBC Driver runtimeOnly 'com.oracle.ojdbc:ojdbc8' 설정파일에 설정 추가 (src>resources>application.properties) #Oracle spring.datasource.url=jdbc:oracle:thin:@172.16.0.00:1521:xe spring.datasource.username=id spring.datasource.password=pass spring.datasource.driver.class=o..
[Refer] SpringWebMVC - Request Mapping Spring Web MVC - Request Mapping
[Refer] SpringWebMVC - Handler Methods Spring Web MVC - Handler Methods Web on Servlet Stack This part of the reference documentation covers support for Servlet stack, WebSocket messaging that includes raw WebSocket interactions, WebSocket emulation through SockJS, and publish-subscribe messaging through STOMP as a sub-protocol over WebSocket. 4.1 docs.spring.io Arguments getEvent(@PathVariable Integer id) : URI경로에서 가져옴 @GetMapping("..