일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- GC
- 스프링 부트
- 페이스북
- clean code
- oauth2
- 페이징
- JWT
- load balancing
- gdg
- OAuth
- 스프링부트
- 스프링
- 비동기
- 권한
- 클린코드
- Spring
- spring boot
- Producer
- Security
- java
- 시큐리티
- 리팩토링
- RabbitMQ
- jvm
- apache
- JPA
- tomcat
- g1
- assertj
- Refactoring
- Today
- Total
목록spring boot (22)
허원철의 개발 블로그
이번 글은 AOP 에 대한 글입니다. "Spring 의 장점이 뭐냐 ?" 라고 질문을 한다면 "loC/DI, AOP, 서비스 추상화" 라고 말할 수 있습니다. AOP 란, Aspect Orient Proramming 관점 지향 프로그래밍 이란 뜻으로, 기능을 비지니스 로직과 공통 모듈로 구분한 후에 필요한 시점에 비지니스 로직에 삽입하여 실행되게끔 하도록 하는 것 입니다. 언제 사용되는가 ? - 트랜잭션을 적용하기 위해 사용한 적이 있지만, 그 외에도 몇 가지 있다고 합니다.① 간단한 메소드 성능 검사② 트랜잭션 처리③ 예외 반환④ 아키텍처 검증⑤ 기타(로깅, 인증, 권한 등) 구성요소 - JoinPoint : 모듈의 기능이 삽입되어 동작할 수 있는 실행 가능한 특정 위치- PointCut : 어떤 클래..
이번 글은 Interceptor에 대한 글 입니다. interceptor 란 ?- 가로채는 것, 요격기 라는 뜻 입니다. 다시 말해서, Url Mapping 된 Controller를 거치는 전, 후 처리를 할 수 있도록 도와주는 요소 입니다. 로그인된 유저 체크, 로그 처리 같은 것들을 매번 하지 않고 Interceptor 를 통해 해주면 될 것 입니다. 물론! 예외적인 처리도 할 수 있습니다. 1. Gradle 설정2. Component 설정3. Config 설정4. Controller 설정5. 결과6. Advice 설정 1. Gradle 설정- spring-webmvc.jar 를 열어보면 interceptor를 구현 할 수 있는 인터페이스가 있습니다. 이를 위해, spring-boot-starter-..
이번 글은 spring 에서 rest 서비스를 가장 빠르게 만드는 기술에 대한 내용 입니다. 1. gradle 설정2. Entity 설정3. Repository 설정4. Events 설정5. JPQL 이란? 1. gradle 설정- jpa 와 함께 rest 추가해서 넣어줍니다. (※참고 : Spring Boot 에 JPA 적용하기)dependencies { compile('mysql:mysql-connector-java') compile('org.springframework.boot:spring-boot-starter-data-jpa') compile('org.springframework.boot:spring-boot-starter-data-rest') compile('org.projectlombok:l..
이번 글을 spring boot 에 security OAuth2 를 다룬 글 입니다. 최근, 웹 또는 앱에서 가장 많이 접하는 인증 형태가 바로 OAuth2 형태입니다.예를 들면, 페이스북 인증, 구글 인증, 다음 인증, 네이버 인증 등 이 될 수 있습니다. 1. Gradle 설정2. Properties 설정3. Application 설정4. Controller 설정5. 테스트5. DB 연동 1. Gradle 설정- security 에서 spring-sesurity-oauth2 를 추가 선언 해줍니다.dependencies { compile('mysql:mysql-connector-java') compile('org.springframework.boot:spring-boot-starter-data-jpa..
이번글은 spring boot에서 validator에 대한 글 입니다. validator 는 Entity 클래스의 유효성검사 할 때 사용 됩니다. 1. Gradle 설정2. Model 설정3. Controller 설정 1. Gradle 설정dependencies { compile('org.springframework.boot:spring-boot-starter-data-jpa') compile('org.projectlombok:lombok') compile('org.springframework.boot:spring-boot-starter-validation') compile('org.springframework.boot:spring-boot-starter-web') runtime('mysql:mysql-..