일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 자바 스프링
- 스프링 기초
- 제이쉘
- spring
- 알고리즘
- 프로그래밍기초
- Git
- github
- 컴퓨터과학개론
- 초보코딩탈출
- 이클립스
- JShell
- 자바
- 데이터베이스
- Elk
- 프로그래밍
- 리눅스
- eclips
- 기초코딩
- 클래스
- 코딩초보
- Java
- JAVA기초
- 배열
- 초보코딩
- 메소드
- 프로그래밍언어
- 자바프로그래밍
- 자바기초
- 스프링
- Today
- Total
목록스프링프레임워크 (3)
키보드워리어

안녕하세요 【키보드 워리어】 블로그 방문자 여러분, 안경닦이입니다. 오늘은 Auditing기능으로 자동 생성일, 수정일을 만들어 보도록 할게요. Auditing기능은 모든 Entity의 상위 클래스로 상속받게 하여 createdDate, ModifiedDate자동 관리가 됩니다. //모든 Entity의 상위 클래스로 createdDate,ModifiedDate자동 관리 //Application 클래스에 @EnableJpaAuditing 지정 @Getter @MappedSuperclass //Entity클래스들이 BaseTimeEntity 를 상속하면 필드 멤버도 컬럼으로 인식 @EntityListeners(AuditingEntityListener.class)//Auditing기능 자동 포함 public ..

안녕하세요 【키보드 워리어】 블로그 방문자 여러분, 안경닦이입니다. 스프링 개발을 하면서 생소했던 개념인 Dto에 대해 적어보려고 합니다. @Getter @RequiredArgsConstructor//final 필드값 생성자 형성 public class HelloResponseDto { private final String name; private final int amount; } 단순한 구성입니다. 롬복기능을 통해 @Getter 코드를 만들어주었고 RequiredArgsConstructor어노테이션은 final 필드값을 생성자 형성을 해주는 어노테이션입니다. 저는 이 코드를 작성할 때 뭔가 Entity어노테이션과 비슷하다고 생각했습니다. '아니, Getter,생성자를 해주면 Setter만 추가해 주면..

안녕하세요! 오늘 시간에는 아주 간단한 Spring framework를 활용한 Seucurity 추가설정하는 법에 대해 배워볼 거예요. Security Spring Security는 인증 및 권한 부여 기능을 제공하는 Spring Framework의 모듈입니다. https://en.wikipedia.org/wiki/Spring_Security Spring Security - Wikipedia From Wikipedia, the free encyclopedia Spring Security is a Java/Java EE framework that provides authentication, authorization and other security features for enterprise applicat..