본문 바로가기

기록하기

(86)
Dependencies [1차 정리] 프로젝트에서 쓰이는 의존성 1차 정리 나중에 첨삭이 있을 예정 쓰고 싶지만 아직 사용하지 못한 것도 있음 implementation 'org.webjars:stomp-websocket:2.3.4' implementation 'org.webjars:sockjs-client:1.5.1' implementation 'org.webjars.bower:axios:0.21.1' implementation 'org.webjars.bower:vue:2.6.14' implementation 'org.webjars.bower:bootstrap:5.3.1' // WebSocket implementation 'org.springframework.boot:spring-boot-starter-websocket' // WebSoc..
AWS EC2 Ubuntu Docker 실행하기 Ubuntu 에서 Docker 설치하기 // 패키징 툴 업그레이드 apt update & apt upgrade // docker 설치에 필요한 필수 패키지 설치 sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common // docker GPC key 인증 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - // -> 입력시 'OK' 출력되면 정상 작동 // docker repository 등록 - docker 환경 구축시 필수 절차 sudo add-apt-repository \ "deb [arch=..
Day + 54 @SuppressWarnings("ALL") @Target(ElementType.PARAMETER) @Retention(RetentionPolicy.RUNTIME) @AuthenticationPrincipal(expression = "user") public @interface LoginAccount { } 스프링 프레임워크에서 사용자 정의 어노테이션을 만드는 방법을 보여줌 이 사용자 정의 어노테이션 `LoginAccount`는 스프링 시큐리티의 `@AuthenticationPrincipal` 어노테이션을 확장하여 현재 로그인한 사용자의 정보를 컨트롤러 메서드의 파라미터로 쉽게 주입받을 수 있도록 도와줌 각 어노테이션과 요소들이 어떤 역할? `@SuppressWarnings("ALL")`: 컴파일러에게 ..
Mysql 예약어 필드값에 예약어 써서 에러나서 한번쯤 찾아보는 mysql 예약어
DAY + 52 @Entity @Getter @Table(name = "user") @NoArgsConstructor(access = AccessLevel.PROTECTED) public class User { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column(nullable = false, unique = true) private String email; @Column(nullable = false) private String password; @Column(nullable = false) private String phoneNumber; @Column(nullable = false, unique = true) private..