error
-
[JAVA] Exception in thread "main" java.util.InputMismatchExceptionerror 2023. 4. 20. 09:25
에러 : Exception in thread "main" java.util.InputMismatchException scanner로 입력받을 때 자료형이 달라서 생기는 오류 (정수로 입력 받기로 했으나 정수가 아닌 다른 형태가 올 때) > try-catch 구문으로 제대로 된 값을 받을 때까지 입력받기 > 전체를 while문으로 받고 try-catch를 통해 예외가 발생했을 경우 사용자에게 다시 물어본다 > 사용자 Y 입력 받는 경우 while문에 의해서 다시 처음부터 숫자 입력받도록 코드 생성 while (startOrStop.toUpperCase().equals("Y")) { System.out.println("\n1 또는 2를 입력해 주세요."); System.out.println("(1: 파일 대..
-
[Vue.js] the template root requires exactly one element.error 2023. 3. 12. 18:47
vue.js를 시작해 보기에 앞서 에러가 났다. 설치하고 파일을 연결했을 뿐인데 에러가 나서 당황했다. 에러 : the template root requires exactly one element. 찾아보니 실제 에러는 아니고 template 태그 안에 반드시 루트 태그가 있어야 했다. 안의 내용을 로 묶어주면 에러 해결 (참고) https://skillazit.tistory.com/46
-
[스프링부트/인텔리제이] com.fasterxml.jackson.databind.exc.InvalidDefinitionExceptionerror 2023. 1. 12. 22:35
2023-01-12 17:54:45.958 ERROR 16120 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.http.converter.HttpMessageConversionException: Type definition error: [simple type, class jpabook.jpashop.repository.OrderSimpleQueryDto]; nes..
-
[스프링부트/intellij/mysql] com.mysql.cj.jdbc.exceptions.CommunicationsException:error 2023. 1. 6. 17:29
2023-01-06 15:05:09.297 ERROR 11544 --- [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Exception during pool initialization. com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure mysql 연결 해제 후 다시 연결하니 해결되었다.
-
[스프링부트/인텔리제이] Port 8080 is already in use 에러error 2023. 1. 2. 15:06
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2023-01-02 14:53:06.504 ERROR 21048 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : Web server failed to start. Port 8080 was already in use. > 포트 8080 이미 사용되고 있다는 뜻이니까 간단하게 현재 사용하고 있는 포트를 종료하고 재실행하기 (window) 1. cmd 창 > 'netstat -ano' 명령어 입력 2. 8080의 PID 번호 찾기 > TCP 0.0.0.0:8080..