본문 바로가기

JAVA - Backend

(23)
spring-boot-starter-logging 참고 https://docs.spring.io/spring/docs/5.0.0.RC3/spring-framework-reference/overview.html#overview-logging resources>log4j2.xml Gradle implementation 'org.springframework.boot:spring-boot-starter-log4j2' configurations { all*.exclude module : 'spring-boot-starter-logging' } 스프링 부트 2 - 스프링 부트의 기본 로거는 Logback이다. - 프로젝트 전체 또는 패키지별로 로그 레벨 설정 가능 (중복될 경우 낮은레벨로 적용) debug=true logging.level.org.springfra..
spring-boot-starter-data-jpa, common 참고 https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#preface Spring Data JPA - Reference Documentation Example 108. Using @Transactional at query methods @Transactional(readOnly = true) public interface UserRepository extends JpaRepository { List findByLastname(String lastname); @Modifying @Transactional @Query("delete from User u where u.active = false") v docs.spring.io JDBC ..
HTTPS 설정 SSL Key
WebMVC Configuration 1. @Configuration + @EnableWebMvc + WebMvcConfigurer 구현: 스프링 부트의 스프링 MVC 자동 설정 미사용 2. application.properties 3. @Configuration + WebMvcConfigurer 구현: 스프링 부트의 스프링 MVC 자동설정 + 추가 설정 https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/servlet/config/annotation/WebMvcConfigurer.html WebMvcConfigurer (Spring Framework 5.2.4.RELEASE API) docs.spring.io Formatter설정 :..
QueryDsl 참고 https://www.4te.co.kr/890?category=624359 QueryDSL 사용하기 JPA를 사용하면서 QueryDSL을 셋팅하고 사용하는 부분에 있어서 매번 헷깔려 정리한다. QueryDSL을 사용하기 위해서 build.gradle 파일에 아래의 내용을 추가 해 준다. plugins { ... id 'idea' id 'com.ewerk.gra.. www.4te.co.kr
[Refer] Readings https://www.baeldung.com/category/spring/spring-boot/ Spring Boot | Baeldung www.baeldung.com https://spring.io/guides#topical-guides Spring Level up your Java code and explore what Spring can do for you. spring.io https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-documentation Spring Boot Reference Documentation This section goes into more detail about how you should us..
spring-boot-starter-data-jpa 참고 https://doublesprogramming.tistory.com/260 JPA - 엔티티 매핑 ch04-entity-mapping.md 본 글은 자바 ORM 표준 JPA 프로그래밍를 읽고 개인적으로 학습한 내용 복습하기 위해 작성된 글로 내용상 오류가 있을 수 있습니다. 오류가 있다면 지적 부탁 드리겠습니다. JPA - 엔티티.. doublesprogramming.tistory.com https://www.baeldung.com/sql-logging-spring-boot Show Hibernate/JPA SQL Statements in Spring Boot | Baeldung Learn how you can configure logging of the generated SQL statement..
Lombok 참고 https://www.daleseo.com/lombok-popular-annotations/ [자바] 자주 사용되는 Lombok 어노테이션 Lombok 라이브러리에서 제공하는 어노테이션 중에서 자주 사용되는 어노테이션 위주로 살펴보도록 하겠습니다. 접근자/설정자 자동 생성제일 먼저 살펴볼 어노테이션은 @Getter와 @Setter 입니다.아마 Lombok에서 가장 많이 사용되는 어노테이션일 텐데요.예를 들어, xxx라는 필드에 선언하면 자동으로 getXxx()(boolean 타입인 경우, is www.daleseo.com 그래들 // Lombok compileOnly 'org.projectlombok:lombok' annotationProcessor 'org.projectlombok:lombok' ..