Skip to content

Commit

Permalink
edit post
Browse files Browse the repository at this point in the history
  • Loading branch information
shyang committed Apr 2, 2024
1 parent ddd0555 commit b22288a
Show file tree
Hide file tree
Showing 57 changed files with 1,623 additions and 36 deletions.
4 changes: 2 additions & 2 deletions _posts/2023-10-09-procreate-좌우대칭 그리기.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ toc_label : "좌우대칭 그리기"
categories:
- Procreate
tags:
- [Procreate, 리소스제작]
- [Procreate]
last_modified_at: 2023-10-09T08:00:00-10:00:00
---

# 날짜 : 2023-10-09 14:36

# 태그 : #Procreate #리소스제작
# 태그 : #Procreate
---

# 내용
Expand Down
30 changes: 28 additions & 2 deletions _posts/2023-10-11-mariadb-MariaDB.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,21 @@ GRANT ALL PRIVILEGES ON *.* TO '아이디'@'접속ip' IDENTIFIED BY '패스워

### 함수

#### STR_TO_DATE
- 문자열을 날짜 형식으로 변환
- STR_TO_DATE(\<입력 데이터\>, \<입력 데이터 포맷\>)

```sql
select STR_TO_DATE('2024-04-01 23:59:59', '%Y-%m-%d %H:%i:%s');
select STR_TO_DATE('20240401 235959', '%Y%m%d %H%i%s');
```

#### DATE_FORMAT
- 날짜를 지정된 형식의 문자열로 변환
- DATE_FORMAT(<문자열>, <포맷>)
- 문자열을 날짜 형식으로 변환

```sql
DATE_FORMAT(P.PRCS_END_DT, '%Y%m%d')
DATE_FORMAT(REG_DT, '%Y%m%d')
```

#### DATE_ADD
Expand All @@ -59,6 +68,23 @@ SELECT DATETIME()
CAST(expr AS type)
```

### 시간 데이터 타입

| 타입명 | 기능 | 형식 |
| --------- | -------------------------------- | ---------------------------- |
| TIME | 시간 표기 | HH:MM:SS |
| DATE | 날짜 표기 | YYYY-MM-DD |
| DATETIME | 날짜와 시간 표기 | YYYY-MM-DD HH:MM:SS |
| TIMESTAMP | 날짜와 시간 표기, DATETIME보다 정밀한 시간을 표기 | YYYY-MM-DD HH:MM:SS(.FFFFFF) |

#### DATETIME과 TIMESTAMP

| | DATETIME | TIMESTAMP |
| --- | ---------- | --------------------- |
| 타입 | 문자형 | 숫자형 |
| 용량 | 8Byte | 4Byte |
| 입력 | 명식적 insert | Default Insert (AUTO) |

---

# 연결문서
Expand Down
9 changes: 6 additions & 3 deletions _posts/2023-10-23-키보드-QK80.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ last_modified_at: 2023-10-23T08:00:00-10:00:00

## 기능키
- **오른쪽 Ctrl** 키가 fn이다
- fn + Tap : 유선-무선-블루투스 모드 변경
- fn + Q,W,E 꾸욱 : 블루투스 연결 대기 모드 변경
- fn + 1,2,3, 블루투스 채널 변경

| 키 조합 | 기능 |
| ------------- | ---------------- |
| fn + Tap | 유선-무선-블루투스 모드 변경 |
| fn + Q,W,E 꾸욱 | 블루투스 연결 대기 모드 변경 |
| fn + 1,2,3 | 블루투스 채널 변경 |

---

Expand Down
4 changes: 3 additions & 1 deletion _posts/2023-10-25-spring-WebMvcConfigurer.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ last_modified_at: 2023-10-25T08:00:00-10:00:00
- request를 핸들링 하기 전,후 처리가 필요할 때 커스텀 인터셉터를 구성한다.

```java
@Configuration
@Configuration
@EnableWebMvc
@ComponentScan(basePackages = "org.infinity.server.controller.api")
public class MvcConfig implements WebMvcConfigurer {

@Override
Expand Down
5 changes: 4 additions & 1 deletion _posts/2023-11-05-키보드-VARO87.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ last_modified_at: 2023-11-05T08:00:00-10:00:00
# 내용

## 기능키
- FN + Space 3초 : 키보드 초기화

| 키 조합 | 기능 |
| ------------- | ------- |
| FN + Space 3초 | 키보드 초기화 |

---

Expand Down
7 changes: 5 additions & 2 deletions _posts/2023-11-07-bdd-BDD.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ last_modified_at: 2023-11-07T08:00:00-10:00:00

# 내용

## BDD(Behavior Driven Development) 란
## 정의
> **BDD란?**
>
> Behavior Driven Development
> TDD에서 파생된 개발 방법론으로 사용자 행위를 기반으로 사용자 시나리오를 구성하여 테스트 케이스를 작성하고 개발을 진행하는 방식
{: .notice}
{: .notice--info}

## BDD 수행 과정
1. 요구사항 명세
Expand Down
10 changes: 9 additions & 1 deletion _posts/2023-11-08-cli-Linux Command Detail.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,15 @@ shutdown -h now

```bash
// 현재 폴더 경로의 모든 shell 파일 실행 권한 부여
chmod -x *.sh
chmod +x *.sh
```

### ln

#### Symbolic link 생성

```bash
ln -s <대상파일> <link 명>
```

---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ toc_label : "특정 레이어 영역 제외한 나머지 영역 사용"
categories:
- Procreate
tags:
- [Procreate, 리소스제작]
- [Procreate]
last_modified_at: 2023-11-17T08:00:00-10:00:00
---

# 날짜 : 2023-11-17 20:21

# 태그 : #Procreate #리소스제작
# 태그 : #Procreate
---

# 내용
Expand Down
4 changes: 2 additions & 2 deletions _posts/2023-12-08-developcommon-Critical Section.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ last_modified_at: 2023-12-08T08:00:00-10:00:00
### Mutex
- Mutual exclusion(상호배제)의 약자
- Kernel 오브젝트인 Mutex를 이용한 동기화 기법
- <span style="color:red">Lock을 실행한 Thread가 Critical Section에서 나갈 때만 utex 해제</span>
- <span style="color:red">Lock을 실행한 Thread가 Critical Section에서 나갈 때만 Mutex 해제</span>
- 여러 프로세스의 Thread 사이에서 동기화 가능
- 한개의 Critical Section만 동기화 가능(Mutex는 한개의 Critical Setion을 소유한다 or 책임진다)
- 일정 시간을 주기로 계속 Acquire를 반복 호출하여 Critical Section에 접근 가능한지 여부를 확인("Busy Waiting", "spinlock")
Expand All @@ -58,7 +58,7 @@ last_modified_at: 2023-12-08T08:00:00-10:00:00
- 받아들일 수 있는 Thread 또는 Process의 수를 semaphore는라고 부름
- 지정된 수 만큼의 Thread가 동시에 실행되도록 동기화
- 다중프로세스 동기화 기법
- <span style="color:red">Lock을 실행하지 않은 다른 Thread에서도 Signal을 보내 ock을 해제할 수 있음</span>
- <span style="color:red">Lock을 실행하지 않은 다른 Thread에서도 Signal을 보내 Lock을 해제할 수 있음</span>
- wait와 signal이라는 개의 atomic operation 사용
- Binary Semaphore(count = 1), Counting Semaphore(count > 1)가 존재
- 하나의 Critical Section 에 2개 이상의 Thread 또는 Process 진입 가능
Expand Down
3 changes: 2 additions & 1 deletion _posts/2023-12-08-servercommon-Tomcat.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,5 @@ last_modified_at: 2023-12-08T08:00:00-10:00:00
---

# 연결문서
- [Tomcat 설정](../../servercommon/servercommon-Tomcat-설정)
- [Tomcat 설정](../../servercommon/servercommon-Tomcat-설정)
- [Tomcat-logging](../../servercommon/servercommon-Tomcat-logging)
18 changes: 9 additions & 9 deletions _posts/2023-12-12-oracle-Oracle Common.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ last_modified_at: 2023-12-12T08:00:00-10:00:00

### 문자형

| type | 설명 | 최대길이 | 기본값 |
| ----------- | ----------------------------- | -------- | ------ |
| CHAR(n) | 고정길이 문자 | 2000byte | 1byte |
| VARCHAR2(n) | 가변길이 문자 | 4000byte | 1byte |
| NACHAR(n) | 고정길이 유니코드 문자 | 2000byte | 1byte |
| NVARCHAR(n) | 가변길이 유니코드 문자 | 2000byte | 1byte |
| LONG | 최대값이 큰 가변길이 문자 | 2Gbyte | |
| CLOB | 대용량 텍스트 데이터 | 4Gbyte | |
| NCLOB | 대용량 텍스트 유니코드 데이터 | 4Gbyte | |
| type | 설명 | 최대길이 | 기본값 |
| ----------- | ---------------- | -------- | ----- |
| CHAR(n) | 고정길이 문자 | 2000byte | 1byte |
| VARCHAR2(n) | 가변길이 문자 | 4000byte | 1byte |
| NACHAR(n) | 고정길이 유니코드 문자 | 2000byte | 1byte |
| NVARCHAR(n) | 가변길이 유니코드 문자 | 2000byte | 1byte |
| LONG | 최대값이 큰 가변길이 문자 | 2Gbyte | |
| CLOB | 대용량 텍스트 데이터 | 4Gbyte | |
| NCLOB | 대용량 텍스트 유니코드 데이터 | 4Gbyte | |

### 숫자형

Expand Down
82 changes: 80 additions & 2 deletions _posts/2023-12-14-spring-MockMVC.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,91 @@ last_modified_at: 2023-12-14T08:00:00-10:00:00
## 정의
> **MockMVC란?**
>
> Web Application을 배포하지 않고 Spring MVC의 동작을 재현할 수 있는 테스트 도우미
> Spring 3.2 부터 Spring MVC를 모킹하여 웹 어플리케이션 테스트를 지원하는 라이브러리로 Web Application을 배포하지 않고 Spring MVC의 동작을 재현하여 테스트 할 수 있다
{: .notice--info}

## Artifact
- org.springframework.test.web.servlet

## Initialize

### 방법 1. webAppContextSetup
- WebApplicationContext를 사용하여 테스트할 경우 사용

```java
MockMvc mockMvc;

@BeforeEach
void setUp(WebApplicationContext wac) {
mockMvc = MockMvcBuilders.webAppContextSetup(wac).build();
}
```

### 방법 2. standaloneSetup
- 특정 컨트롤러만 테스트할 경우 사용

```java
MockMvc mockMvc;

@BeforeEach
void setup() {
mockMvc = MockMvcBuilders.standaloneSetup(new ApiController()).build();
}
```

## Request Test

### perform()

```java
public ResultActions perform(RequestBuilder requestBuilder) throws Exception
```

- Reqeust를 실행하는 Method
- perform()은 RequestBuilder를 Parameter로 받는데 [MockMvcRequestBuilders](#mockmvcrequestbuilders) 를 사용하여 손쉽게 MockHttpServletRequestBuilder 생성할 수있음

### MockMvcRequestBuilders
- RequestBuilder 객체를 생성하는 Static Methods를 제공

```java
public static MockHttpServletRequestBuilder get(String urlTemplate, Object... uriVars){...}

public static MockHttpServletRequestBuilder post(String urlTemplate, Object... uriVars){...}

public static MockHttpServletRequestBuilder put(String urlTemplate, Object... uriVars){...}

public static MockHttpServletRequestBuilder delete(String urlTemplate, Object... uriVars){...}
...
```

## assertion

### methods

#### MockMvcResultMatchers

| 메서드명 | 검증 대상 |
| --------------------- | ----------------------------------- |
| request | session scope, request scope, async |
| handler | |
| model | spring MVC model status |
| view | controller가 반환한 view 명 |
| flash | |
| forwardedUrl | 이동 대상의 경로 |
| forwardedUrlTemplate | |
| forwardedUrlPattern | |
| redirectedUrl | |
| redirectedUrlTemplate | |
| status | status code |
| header | response header |
| content | response body |
| jsonPath | body의 특정 값 |
| xpath | |
| cookie | |

---

# 연결문서
- [SpringMVC](../../spring/spring-SpringMVC)
- [SpringMVC](../../spring/spring-SpringMVC)
- https://seongwon.dev/Spring-MVC/20220624-MockMvc%EB%9E%80/
- https://adjh54.tistory.com/347
4 changes: 2 additions & 2 deletions _posts/2023-12-30-procreate-캐릭터 브러쉬 만들기.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ toc_label : "캐릭터 브러쉬 만들기"
categories:
- Procreate
tags:
- [Procreate, 리소스제작]
- [Procreate]
last_modified_at: 2023-12-30T08:00:00-10:00:00
---

# 날짜 : 2023-12-30 20:24

# 태그 : #Procreate #리소스제작
# 태그 : #Procreate
---

# 내용
Expand Down
5 changes: 4 additions & 1 deletion _posts/2024-02-05-키보드-Monsgeek M5.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ last_modified_at: 2024-02-05T08:00:00-10:00:00
# 내용

## 기능키
- 왼쪽 Win 키 + 오른쪽 Win 키 3초간 입력 : 초기화

| 키 조합 | 기능 |
| --------------------------- | --- |
| 왼쪽 Win 키 + 오른쪽 Win 키 3초간 입력 | 초기화 |

---

Expand Down
3 changes: 2 additions & 1 deletion _posts/2024-02-14-servercommon-Tomcat 설정.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,4 +268,5 @@ last_modified_at: 2024-02-14T08:00:00-10:00:00
---

# 연결문서
- [Tomcat](../../servercommon/servercommon-Tomcat)
- [Tomcat](../../servercommon/servercommon-Tomcat)
- [Tomcat-logging](../../servercommon/servercommon-Tomcat-logging)
5 changes: 4 additions & 1 deletion _posts/2024-03-04-spring-Message Converter.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ last_modified_at: 2024-03-04T08:00:00-10:00:00
> **Message Converter란?**
>
> Spring MVC에서 요청 및 응답 메시지를 변환하는 인터페이스
> HTTP 요청과 응답의 body를 자바객체로 변환, 자바 객체를 다양한 메시지로 변환 등의 역할을 수행
> HTTP 요청과 응답의 body를 자바객체로 변환, 자바 객체를 다양한 메시지로 변환하는 역할을 수행
{: .notice--info}

## 설정 방법
Expand Down Expand Up @@ -65,3 +65,6 @@ public class APIConfiguration implements WebMvcConfigurer {
---

# 연결문서
- [WebMvcConfigurer](../../spring/spring-WebMvcConfigurer)
- [@EnableWebMvc](../../annotation/annotation-@EnableWebMvc)
- [GsonHttpMessageConverter](../../spring/spring-GsonHttpMessageConverter)
40 changes: 40 additions & 0 deletions _posts/2024-03-07-nextjs-NextJS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
title : "NextJS"
excerpt : "NextJS"
toc : true
toc_sticky : true
toc_label : "NextJS"
categories:
- NextJS
tags:
- [NextJS]
last_modified_at: 2024-03-07T08:00:00-10:00:00
---

# 날짜 : 2024-03-07 13:27

# 태그 : #NextJS
---

# 내용

## 정의
> **NextJS란?**
>
> React 라이브러리 프레임워크
{: .notice--info}

## 장점
- [Hydration](../../nextjs/nextjs-NextJS-Hydration) 기능을 통한 사용자 편의성 증가
- [SEO](../../servercommon/servercommon-SEO) 최적화 기능 제공
- 직관적인 프로젝트 구조(페이지 폴더 구조와 url 이 동일)
- Client-side navigation이 쉬움
- 코드 분할을 통해 페이지 로딩 시간 감소

---

# 연결문서
- [CSR SSR](../../webcommon/webcommon-CSR-SSR)
- [SEO](../../servercommon/servercommon-SEO)
- [NextJS-프로젝트-Init](../../nextjs/nextjs-NextJS-프로젝트-Init)
- [NextJS-Hydration](../../nextjs/nextjs-NextJS-Hydration)
Loading

0 comments on commit b22288a

Please sign in to comment.