Spring(22)
-
[Intellij] Import 시 cannot resolve symbol 에러
에러 상황해결 방법 1. Gradle cleanView - Tool Windows -Gradle 2. Invalidate cachesFile/Invalidate caches 3. Refresh Gradle DependenciesView - Tool Windows -Gradle해당 Gradle 우클릭 후 Refresh Gradle Dependencies
2021.08.24 -
SdkClientException: Unable to find a region via the region provider chain 에러
Configuration and credential file settings 1. C:\Users\[사용자명]/.aws 구성 2. ~/.aws/config [default] region=ap-northeast-2 output=json 3.~/.aws/credentials [default] aws_access_key_id=[] aws_secret_access_key=[] 참고 https://docs.aws.amazon.com/ko_kr/cli/latest/userguide/cli-configure-files.html https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/java-dg-region-selection.html
2021.08.06 -
restTemplate을 이용한 API 호출
목차 1.객체 생성 및 호출 설정 HttpComponentsClientHttpRequestFactory httpRequestFactory = new HttpComponentsClientHttpRequestFactory(); httpRequestFactory.setConnectTimeout(30000); // ConnectTimeout 설정(ms) httpRequestFactory.setReadTimeout(5000); // ReadTimeout 설정(ms) RestTemplate restTemplate = new RestTemplate(httpRequestFactory);// RestTemplate 생성 HttpHeaders headers = new HttpHeaders(); //header header..
2021.07.22 -
stackoverflow 에러(annotations for web application [/api] due to a StackOverflowError)
Tomcat run 시 발생하는 에러 Caused by: java.lang.IllegalStateException: Unable to complete the scan for annotations for web application [/api] due to a StackOverflowError. 해결방법 톰캣 시작시 bcprov*.jar 파일들 스킵 1. tomcat catalina.properties 파일 열기 2.tomcat 폴더에 org.apache.catalina.startup.ContextConfig.jarsToSkip=bcprov*.jar 추가 tomcat.util.scan.StandardJarScanFilter.jarsToSkip=\ annotations-api.jar,\ -----------..
2021.07.21 -
java.util.concurrent.completionexception: java.net.bindexception: address already in use: bind 에러 해결법
IDE 6942에서 6991번 포트 중 사용 가능한 첫번째 포트를 바인딩하는데 해당 범위에 사용가능한 포트가 존재하지 않아 에러가 난다. PowerShell을 관리자 모드로 실행 후 위 명령어를 순서대로 입력해주면 실행 에러가 사라진다. dism.exe /Online /Disable-Feature:Microsoft-Hyper-V # 이후 윈도우를 재시작 netsh int ipv6 add excludedportrange protocol=tcp startport=6942 numberofports=10 # JetBrains 사의 IDE를 동시에 10개 이상은 안 쓸 거 같아 10개만 예약해뒀다. dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All 참고 https..
2021.06.14 -
IntelliJ 개발 능력 향상 시킬 수 있는 단축키
Intellij 에서 개발 능력을 향상 시킬 수 있는 단축키들을 정리단축키기능단축키(Intellij)Generate 표시 - Constructor - Setter등 생성- Override Method- Test code 생성Windows : alt + insertMac : cmd + N커서 복사Windows : alt + shift + clickMac: ⌥ + ⇧ + clickcommendWindows : ctrl + EnterMac: ⌃ + Enter컨텍스트에 대한 액션 표시Windows : alt + EnterMac: ⌘ + Enter다음 에러로 이동Windows : F2Mac: F2도구창(프로젝트 경로) 열기/닫기Windows : Alt+1Mac : ⌘ + 1선언으로 이동Windows : ctrl+..
2021.05.04