기타4 [SpringBoot] WebClient not resolved WebClient를 사용하려고 IntelliJ에서 build.gradle에 implementation 'org.springframework.boot:spring-boot-starter-webflux' dependency 추가했는데도 WebClient가 인식되지 않음. shift 두 번 연타 -> invalidate caches 하고 ide 재시작 2023. 2. 17. [DB]MySQLdb.OperationalError: (1071, 'Specified key was too long; max key length is 3072 bytes') ALTER DATABASE `databasename` CHARACTER SET utf8; django에서 unique=True인 경우 max_length가 255인데, max_length를 2000으로 해놓아서 생긴 에러였음. 2023. 1. 23. .gitignore 이미 버전관리 대상에 포함있는 파일을 제외하고 싶은 경우 git rm -r --cached {파일명} 2023. 1. 18. c++ 한 줄 입력받기 //띄어쓰기를 포함해서 한 줄씩 입력받는 방법 char s[20]; cin.getline(s, 20); //줄 바꿈 문자 포함하고 입력받음 string s; getline(cin, s); //줄 바꿈 문자 제외하고 입력받음 ※ getline(cin, s)을 사용할 때 주의해야 할 점 int n; string s; cin >> n; //cin.ignore(); getline(cin, s); 이럴 때 입력을 한 뒤 누른 '\n' 값이 버퍼에 남아 있어서 s를 입력받지 못하고 넘어간다. 그럴 때 cin.ignore();를 쓸 수 있다. 2022. 1. 15. 이전 1 다음