일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- AWS 프로젝트
- optional
- AWS
- AWS EC2
- java stream
- AWS 프로젝트 올리기
- Optional 사용법
- 창업형인간
- java Optional
- 스트림 예제
- 비주얼 스튜디오 코드
- vscode
- AWS ssh
- @async
- 라이프해킹스쿨
- 자바 스트림
- java null 처리
- AWS 키페어
- spring async
- ssh
- 마인드
- CI/CD
- 창업형인간되기
- spring multi thread
- Visual Studio Code
- AWS S3
- 창업 마인드
- github CI/CD
- dockerfile
- 창업
- Today
- Total
목록2021/07 (5)
Wookim
Transaction 데이터베이스 트랜잭션(Database Transaction)은 데이터베이스 관리 시스템의 상호작용의 단위이다. 이하 트랜잭션이라 칭함. 더보기 자세한 내용은 아래 글 참조 https://coding-factory.tistory.com/226 spring boot의 트랜잭션 적용전 코드 인터페이스 /** 인터페이스 */ public interface SomeService { void someMethod1() throws Exception; void someMethod2() throws Exception; void someMethod3() throws Exception; } 2. 서비스 @Service public class SomeServiceImpl implements SomeSer..
Optional 자바 1.8 버전 이후로 추가된 함수지향 메소드 사용 이유 null 처리의 간소화 특정 데이터의 필터링 null 이 가능한 데이터의 명시적인 표현 가독성 향상 null 처리 간소화 ex) 기존 방식 if(someClassInstace ! = null && someClassInstace.innerObject ! = null && someClassInstace.innerObject.memberData ! = null && someClassInstace.innerObject.memberData > 5){ // 로직 }else{ // 예외 처리 } ex) Optional 처리 Optional.of(someClassInstance) // null 이면 orElseThrow .map(x -> x.i..
Optional 자바 1.8 버전 이후로 추가된 함수지향 메소드 사용 이유 null 처리의 간소화 특정 데이터의 필터링 null 이 가능한 데이터의 명시적인 표현 가독성 향상 null 처리 간소화 ex) 기존 방식 if(someClassInstace ! = null && someClassInstace.innerObject ! = null && someClassInstace.innerObject.memberData ! = null && someClassInstace.innerObject.memberData > 5){ // 로직 }else{ // 예외 처리 } ex) Optional 처리 Optional.of(someClassInstance) // null 이면 orElseThrow .map(x -> x.i..
내용 어플리케이션의 실행 환경을 **프로파일(환경)**별로 나누어 별도 저장하여 관리 필요 작업 spring boot 프로젝트 생성 src/main/resources/application.properties 파일 확인 application.properties 파일 (공통) spring.profiles.active=@profileActive@ # 환경 별 공통 설정 내용 작성 3. src/main/resources/application-local.properties 파일 생성 (로컬) # 로컬 환경 전용 설정 내용 작성 4. src/main/resources/application-dev.properties 파일 생성 (개발) # 개발 환경 전용 설정 내용 작성 5. src/main/resousrces/ap..
spring boot swagger 3 1. 의존성 설정 org.springdoc springdoc-openapi-ui 1.5.9 2. 설정 작업 적절한 프로파일의 application-properties 에 적용 springdoc.api-docs.path=/api-docs springdoc.swagger-ui.path-/swagger-ui.html springdoc-swagger-ui.disable-swagger-default-url=true springdoc.swagger-ui.diplay-query-params-without-oauth2=false //springdoc.packages-to-scan=com.example.package, com.example.another.package //sprin..