본문 바로가기

JAVA - Backend

(23)
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에서 특정 메서드만..
log4jdbc-log4j2 참고 : https://mine-it-record.tistory.com/205 [SPRING] log4j2.xml 설정 (feat. level) 스프링 로그를 보이지 않게 끄는 방법에 대해 알아보자 log를 설정할 때 level 이 쓰여있는 것이 보이는데 이 역시 단계가 존재한다. 높은 등급에서 낮은 등급으로의 6개의 로그 레벨을 가지며 지정한 레벨 등급.. mine-it-record.tistory.com https://www.callicoder.com/spring-boot-log4j-2-example/ How to use Log4j 2 with Spring Boot Learn how to integrate and configure Log4j 2 in Spring Boot applications with..
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("..
Lombok 관련 설정 Plugin 설치 컴파일 환경 설정
[JUnit5] UnitTesting FrameWork 참고 https://junit.org/junit5/docs/current/user-guide/#overview-what-is-junit-5 JUnit 5 User Guide Although the JUnit Jupiter programming model and extension model will not support JUnit 4 features such as Rules and Runners natively, it is not expected that source code maintainers will need to update all of their existing tests, test extensions, and cus junit.org XPath로 HTML 본문 테스트시 https://www.w3..