본문 바로가기

JAVA - Backend/SpringBoot - ApplicationFramework

(12)
Gradle + Spring Boot = JAR https://gusrb.tistory.com/71 Gradle + SpringBoot 실행 가능한 JAR 만들기 개요 gradle + springboot 사용 하고 있다. 사용자 프로젝트의 jar 와 의존성 라이브러리를 분리 할 수도 있지만, 하나의 jar 만들어 배포하면 간편한 장점이 있다. springboot 의 많은 의존성 라이브러리, 사용.. gusrb.tistory.com
spring-boot-starter-test 참고 https://cheese10yun.github.io/spring-boot-test/ Spring Boot Test - Yun Blog | 기술 블로그 Spring Boot Test - Yun Blog | 기술 블로그 cheese10yun.github.io https://happyer16.tistory.com/entry/Spring-Boot-Test-%EC%A2%85%ED%95%A9-%EC%A0%95%EB%A6%AC Spring Boot Test 종합 정리 ( 테스트종류, JUnit5 ) 개요 테스트코드의 중요성은 해당 블로그를 읽는 분이라면 모두 알고 있을 것이다. 나도 잘 알고 있지만, 정확한 사용법을 몰라 매번 @SpringBootTest 통합테스트로만 테스트코드를 작성하였다. 이렇게만 작성하..
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설정 :..
[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..