본문 바로가기

개발16

git Invalid username or password 오랜만에 git pull을 했더니 토큰이 만료가 되었다. >git remote remove origin >git remote add origin https://{계정이름}:{토큰}@github.com/{git경로.git} >git fetch >git branch --set-upstream-to=origin/{branch} {branch} >git pull git 충돌 발생 : error: Your local changes to the following files would be overwritten by merge: pom.xml Please commit your changes or stash them before you merge. >git stash // 로컬 변경 파일들을 스택에 넣어두고 >git .. 2023. 1. 11.
tomcat manager 설정 * 톰캣 manager 설정 - /톰캣/conf/tomcat-users.xml ... ... - /톰캣/webapps/manager/META-INF/context.xml 위의 부분을 찾아서 모두 허용시에는 allow=".*", 특정 IP(ex 11.11.11.11과 22.22.22.22)에서만 접근하게 하려면 allow="11\.11\.11\.11|22\.22\.22\.22"처럼 "|"로 구분하여 설정 * 배포하는법 1. 이클립스 프로젝트 오른쪽 클릭 > Export > WAR file을 이용하여 context path 이름의 WAR 파일 생성(루트는 ROOT.war) 2. http://{domain}:{port}/manager/html로 접속 3. 해당 경로(context path)의 "배치된 것을 제.. 2023. 1. 4.
Mysql insert update 시 조건 중 primary key 없이 하기 table의 id가 auto_increment인 상태에서 aa1,bb1이 있으면 cnt를 증가시키고 aa1,bb1이 없으면 insert 해보자. 아래 쿼리를 여러번 실행시키면 aa1,bb1의 cnt가 계속 증가한다.(처음에만 insert, 이후에는 update) INSERT INTO {table} SELECT * FROM ( SELECT id, col1, col2, cnt FROM {table} WHERE col1 = 'aa1' AND col2 = 'bb1' UNION SELECT null, 'aa1', 'bb1', 1 ) a ORDER BY id DESC LIMIT 1 ON DUPLICATE KEY UPDATE cnt = cnt + 1; 2022. 12. 1.
React Native 갑자기 build failed 1. (에러) 평소대로 npx react-native run-android로 실행시키던 중 에러가 발생했다. (여러 프로젝트를 왔다갔다 해서 그런가? npx 프로젝트 init 하다가 버전업이 되어버렸나? ios는 잘 된다..) * What went wrong: Execution failed for task ':app:checkDebugAarMetadata'. > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction > The minCompileSdk (31) specified in a dependency's AAR metadata (META-INF/com/android/buil.. 2022. 11. 9.