
@Configuration @EnableWebSecurity @RequiredArgsConstructor public class WebSecurity extends WebSecurityConfigurerAdapter { private final UserService userService; private final BCryptPasswordEncoder bCryptPasswordEncoder; private final Environment env; @Override protected void configure(HttpSecurity http) throws Exception { http.csrf().disable(); // http.authorizeRequests().antMatchers("/users/*"..

@Entity 내용: 해당 클래스가 엔티티임을 나타내는 어노테이션입니다. 설명: JPA가 해당 클래스를 데이터베이스 테이블과 매핑합니다. 예제: @Entity @Table(name = "users") public class User { //... } @Id 내용: 해당 필드가 엔티티의 식별자(primary key)임을 나타내는 어노테이션입니다. 설명: 엔티티의 식별자 필드를 지정할 때 사용합니다. 예제: @Id private Long id; @Table 내용: 엔티티와 매핑될 테이블의 이름을 지정하는 어노테이션입니다. 설명: 엔티티를 매핑할 테이블의 이름을 지정합니다. 예제: @Entity @Table(name = "users") public class User { //... } @Column 내용: 엔..
hombrew로 mvn 설치방법 brew install mvn 만약, 아래와 같은 오류 발생하였다면 Error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)! To rerun under ARM use: arch -arm64 brew install ... To install under x86_64, install Homebrew into /usr/local. 아래와 같이 시도 $ arch -arm64 brew install 하지만 또아래와 같은 오류 발생하였다면 Error: Invalid usage: This command requires at least 1 formula or cask argument. 그렇다면 아래와 같이 시..

키워드 실행단위 : cpu core에서 실행하는 하나의 프로세스와 스레드를 포괄하는 게념 동시성 한순간에 여러가지 일이 아니라, 짧은 전환으로 여러가지 일이 동시에 처리하는 것처럼 보이는 것 순서 Process vs Thread Multi-process vs Multi-thread Multi-core 요약 프로그램(Program)이란 파일 시스템에 존재하는 실행파일입니다. 소스코드가 등록된 실행 파일입니다. ex) Hwp.exe, MapleStory.exe 등 프로세스(Process)란? 프로그램을 실행시키는 주체 프로그램은 그저 하나의 소스코드에 지나지 않았다, 하지만 실행되어서 사용할 수 있는 무언가가된다면 그것이 바로 프로그램이다. 다음과 같이 프로그램은 바탕화면에 있는 Chrome.exe이고, P..
public class CloserTest { public static void main(String[] args) { int number = 10; Consumer consumer = new Consumer() { @Override public void accept(Integer integer) { // Variable used in lambda expression should be final or effectively final number = 10; System.out.println(number); } }; Consumer consumer2 = integer -> { // Variable used in lambda expression should be final or effectively final..

Java에서 특정 파일의 URL 주소를 읽어 수신자의 브라우저 상에서 파일이 다운로드되고싶다면, 1. Response를 Setting한다. application/octet-stream response.setContentType("application/octet-stream"); //8bit(=1Byte) 단위의 binary data라는 의미 String headerKey = "Content-Disposition"; // 수신받은 브라우저가 파일명을 지정 String headerValue = "attachment; filename=" + "다운받을파일명.jpg"; response.setHeader(headerKey, headerValue); 2. 파일을 Stream으로 읽어들인다. String url = ..
- Total
- Today
- Yesterday
- AnnotationConfigApplicationContext
- Vuex
- java
- docker
- 중간연산
- webpack
- springboot
- lambda
- NPM
- stream
- map
- JPA
- 람다
- 자바8
- ApplicationContext
- mvn
- 최종연산
- MAC
- Intellij
- 스트림
- Vue
- nginx
- elasticsearch
- 영속성 컨텍스트
- BeanFactory
- ngnix
- container
- vscode
- 차이
- install
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |