새로운 깃 리포지토리를 만들고, 로컬에서 세팅한 프로젝트를 push하려는데 아래와 같은 에러가 발생했다.[toy-project] git remote add origin git@[깃_저장소].git[toy-project] git ps -u origin mainerror: src refspec main does not match anyerror: 레퍼런스를 '[깃_저장소].git'에 푸시하는데 실패했습니다[toy-project] # 왜 안돼지답은 멍청하게도 아무 커밋이 없었기 때문...! init 커밋 하나 남겨준 후에 푸시하자.
분명히 며칠 전까진 잘 돌던 jest 테스트 케이스가 아래와 같은 메시지를 뱉으며 실패했다. ● Test suite failed to run Jest encountered an unexpected token This usually means that you are trying to import a file which Jest cannot parse, e.g. it's not plain JavaScript. By default, if Jest sees a Babel config, it will use that to transform your files, ignoring "node_modules". Here's what you can do: • If you are trying ..
[~] docker pull mysql:5.7 5.7: Pulling from library/mysql no matching manifest for linux/arm64/v8 in the manifest list entries [~] 또 M1 Mac 이슈인 듯 하다. 아키텍쳐가 안맞아 상술한 오류가 뜬다면, --platform 을 아래와 같이 명시하여 이미지를 땡겨가자. [~] docker pull --platform linux/amd64 mysql:5.7 5.7: Pulling from library/mysql 20e4dcae4c69: Pull complete 1c56c3d4ce74: Pull complete e9f03a1c24ce: Pull complete 68c3898c2015: Pull compl..
MySQL :: MySQL 8.0 Reference Manual :: 13.3.2 The CHAR and VARCHAR Types 13.3.2 The CHAR and VARCHAR Types The CHAR and VARCHAR types are similar, but differ in the way they are stored and retrieved. They also differ in maximum length and in whether trailing spaces are retained. The CHAR and VARCHAR types are declared with a l dev.mysql.com Values in VARCHAR columns are variable-length strings. ..
내 경우, docker-compose.yml 파일과 Dockerfile의 경로가 같아 context를 현재 경로(온점, .)로 입력하였다. version: '3.9' services: my-backend-app: image: "[이미지_태그명]:[버전]" build: context: . # Dockerfile이 있는 경로를 여기에 명시하자 요렇게 작성하면 image 속성에 명시된 이미지를 우선 pull 해보고, 없으면 build 섹션에 명시된 것을 빌드한 후에 태깅한다. 이 과정에서 원격 저장소에 없는 image를 pull 하기에(= 지금 내가 만드는 컨테이너가 원격 저장소에 있을리 없으므로) 에러가 노출되지만, 이후에 build 섹션의 내용대로 이미지를 빌드한다. 에러가 좀 꼴뵈기 싫은데, 아직까진 별..
간단한 스터디 프로젝트를 진행하던 도중 요런 엔티티를 정의했다. @Entity data class User( @Id @GeneratedValue(strategy = GenerationType.IDENTITY) val id: Int?, val name: String, val password: String, val email: String, @CreationTimestamp val createdAt: Timestamp?, val role: String = Constants.ROLE_USER, ) { companion object { fun from(user: User): User = user.copy( password = PasswordEncoder.encode(user.password), ) } } 처음에..
Hibernate의 엔티티의 기본 생성자를 활용하는 반면, Kotlin은 별도로 기본 생성자를 만들지 않기 때문이라고 한다. 이러한 불편함은 Kotlin 측에서 누구보다 잘 알것이기에 아래와 같은 플러그인을 제공한다. plugins { id("org.springframework.boot") version "3.2.3" id("io.spring.dependency-management") version "1.1.4" kotlin("jvm") version "1.9.22" kotlin("plugin.spring") version "1.9.22" kotlin("plugin.jpa") version "1.9.22" // 요 친구임! } 참고 JPA error in kotlin : Class 'Student' sh..
문제 작업 중에 임의의 리소스에 할당된 리액션들을 이모지 형태로 관리할 필요가 있어서 아래와 같은 테이블을 설계했다. CREATE TABLE `Reactions` ( `Id` INT(11) NOT NULL AUTO_INCREMENT, `ResourceId` INT(11) NOT NULL, `Value` VARCHAR(20) NOT NULL, `CreatedAt` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, `CreatedById` VARCHAR(255) CHARACTER SET utf8 NOT NULL, PRIMARY KEY (`Id`), UNIQUE `Reactions_uq_1` (`ResourceId` ASC, `Value` ASC, `CreatedById` AS..
- Total
- Today
- Yesterday
- Puppeteer
- AWS
- RancherDesktop
- javascript
- Spring Cloud Config
- IntelliJ
- postgresql
- jQuery
- 코딩테스트
- mysql
- kotlin
- Node.js
- shell
- Database
- pgloader
- Docker
- hashicorp
- JEST
- AWS IoT
- Java
- Gradle
- react
- spring boot
- Git
- Linux
- Vault
- eureka
- terraform
- JPA
- etc
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |