일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 처음 만나는 AI수학 with Python
- 스프링 시큐리티
- 선형대수
- baeldung
- /etc/network/interfaces
- resttemplate
- 페이징
- 친절한SQL튜닝
- GIT
- 알파회계
- 리눅스
- 코드로배우는스프링웹프로젝트
- 자바편
- 서버설정
- 구멍가게코딩단
- 데비안
- ㅒ
- 네트워크 설정
- 목록처리
- 스프링부트핵심가이드
- 자료구조와함께배우는알고리즘입문
- 자료구조와 함께 배우는 알고리즘 입문
- d
- 처음 만나는 AI 수학 with Python
- Kernighan의 C언어 프로그래밍
- 이터레이터
- iterator
- network configuration
- 티스토리 쿠키 삭제
- 코드로배우는스프링부트웹프로젝트
- Today
- Total
목록전체 글 (406)
bright jazz music
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/7e6tT/btrXnIipIit/l3HJBqky3UkdEFw7iJ7wY1/img.png)
11. git merge --no-ff --log : fast forward를 사용하지 않고 merge log를 포함해서 현재 사용중인 main 브랜치에 mybranch를 머지하기. git merge --no-ff --log mybranch 입력하면 아래와 같이 vi로 들어간다. 커밋 메시지를 확인하고 q 또는 wq를 입력하여 나온다. 이를 소스트리와 같은 툴에서 확인하면 차이를 확인할 수 있다. 이전 포스팅의 9번 항목에서 merge했을 때에는 브랜치의 분기가 보이지 않았다. 그러나 이번의 경우는 브랜치가 분기 됐다가 다시 합쳐지는 모습을 확인할 수 있다. 그런 다음 git push해서 원격 리포지토리로 커밋 사항을 push한다. 12. 충돌이 발생 경우 1 1. testbranch라는 브랜치를 만들었..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/c6j84L/btrXt80JP1C/Tu2tbeDBSAnykZ2rkkQKAK/img.png)
깃을 쓰는 경우 처음부터 CLI 환경에서의 사용을 추천 소스트리와 같은 도구를 사용하는 경우 문제가 생겼을 때의 원인을 파악하기 어려운 경우가 존재. git status git log git push git push -u origin 푸시할브랜치명 git add 파일명 git add . git checkout git checkout -b 새로운브랜치명 git branch -D 삭제할브랜치명 git commit git commit -m "커밋메시지" git commit -a -m "커밋메시지" git merge git merge --no-ff --log 머지할브랜치명 git rebase 리베이스할브랜치명 git rebase --continue git rebase --abort git reset git re..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/VReqx/btrXoocorCx/a8lB5WvDswqalcedBvsKKK/img.png)
1. SSH를 사용한 통신 환경 설정 1-1 github 로그인 https://docs.github.com/en/authentication/connecting-to-github-with-ssh/about-ssh About SSH - GitHub Docs You can access and write data in repositories on GitHub.com using SSH (Secure Shell Protocol). When you connect via SSH, you authenticate using a private key file on your local machine. For more information about SSH, see Secure Shell on Wikipedia. When yo..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/2F4XX/btrXo4R9c9b/lvXvzT4UeRoOe1HIVGKBWk/img.png)
지금까지 만든 것은 글 조회와 등록의 구분이 되지 않았음. 따라서 정리 필요. 글 조회는 post-inquiry로 변경, 글 등록은 post-create로 변경 //PostControllerDocTest.java package com.endofma.blog.controller; import com.endofma.blog.domain.Post; import com.endofma.blog.repository.PostRepository; import com.endofma.blog.request.PostCreate; import com.fasterxml.jackson.databind.ObjectMapper; import org.junit.jupiter.api.BeforeEach; import org.junit...
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/lZAvX/btrWlmACHLG/u6ZygMqE2EsLq4KXQEaOp0/img.png)
8080 포트 바꿔주기. 여러 가지 방법이 있지만 어노테이션 부착이 가장 쉽다.. @AutoConfigureRestDocs(uriScheme = "https", uriHost = "api.blog.com", uriPort = 443) 클래스 선언부 위에 달아준다. @AutoConfigureRestDocs도 달아주었다. @BeforeEach를 포함한 관련 초기 설정 관련 코드들을 주석처리해 주었다. //PostControllerDocTest.java package com.endofma.blog.controller; import com.endofma.blog.domain.Post; import com.endofma.blog.repository.PostRepository; import org.junit.jup..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/XDvTL/btr2TCB6Dud/IEhG4oihdeqmOd5Tk7TiVk/img.png)
Docker 기본 CLI명령어 https://docs.docker.com/engine/reference/commandline/docker/ docker docker: The base command for the Docker CLI. docs.docker.com 우선 Docker hub에서 centOS 이미지를 다운받아 테스트하겠다. https://hub.docker.com/_/centos centos - Official Image | Docker Hub DEPRECATION NOTICE This image is no longer supported/maintained (non-EOL tags last updated November 16, 2020, docker-library/official-images#9..
https://docs.docker.com/engine/install/centos/ Install Docker Engine on CentOS docs.docker.com - docker를 설치하기 위해선 centos 버전 7 이상이 필요 - centos-extras 리포지토리가 enabled 되어 있어야 함. - overlay2 storage driver 사용 추천 1. 구버전 도커 삭제 (설치되어 있을지 모르는 것들 삭제) sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine [ro..
class file has wrong version 61.0, should be 55.0 Please remove or make sure it appears in the correct subdirectory of the classpath. java 버전 17을 써야 하는데 그 아래 버전을 쓰고 있어서 생기는 문제이다. - java SE 17 = 61.0 - java SE 11 = 55.0 아래 버전의 경우 java 17 이상 버전이 필요하다. - Spring MVC 6.0.0 - Spring Boot 3.0.0 - Spring REST DOCS 3.0.0 pom.xml 또는 gradle.build를 확인했는데 17이 필요 없는 버전이라면? 사용하려는 라이브러리가 자바 17 이상을 요구하는 것일 수도 있다..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/COMfr/btrWgijrfvb/dKajG6KN2D65bV42XtiqZK/img.png)
API를 설명하기 위한 문서 작성 라이브러리는 스웨거를 포함하여 다수이다. 여기서는 Spring REST docs를 사용한다. https://spring.io/projects/spring-restdocs Spring REST Docs It helps you to produce documentation that is accurate, concise, and well-structured. This documentation then allows your users to get the information they need with a minimum of fuss. spring.io Spring REST Doc의 장점 운영 코드에 영향이 없다. 다른 라이브러리는 운영 중인 코드에 어노테이션 또는 xml을 사용해..
현재 예외에 대한 응답은 아래와 같이 반환되고 있다. MockHttpServletResponse: Status = 400 Error message = null Headers = [Content-Type:"application/json"] Content type = application/json Body = {"code":"400","message":"잘못된 요청입니다.","validation":{}} Forwarded URL = null Redirected URL = null Cookies = [] 요청의 성공과 실패 여부만 나타낼 뿐, 검증에 관한 이유를 밝히고 있지는 않다. 지금까지 우리가 작성한 코드 중에서는 validation에 값을 넣어 준 적이 없기 때문이다. 따라서 이번에는 validatio..