코딩일지

[코딩일지] 231016

SolationCoding 2023. 10. 16. 18:15

Web server failed to start. Port 8000 was already in use


매번 컴퓨터 재부팅으로 종료하다가 방법을 찾아보기로 했다. 이번 에러는 체크부터 종료까지 아주 깔끔하게 처리하는 방법을 배웠다.

cmd를 켠 후

netstat -ano

를 입력해 활성화된 포트 확인

taskkill /pid (pid 번호) /f

를 통해 프로세스 종료


도움받은 링크

https://dundung.tistory.com/148

Web server failed to start. Port 8080 was already in use 에러

포트가 이미 실행 중일 때 스프링을 Run 하면 실행되는 에러이다. Web server failed to start. Port 3000 was already in use. Action: Identify and stop the process that's listening on port 3000 or configure this application to listen on a

dundung.tistory.com


Invalid bound statement (not found)


결국엔 경로 문제였다.
되던 게 갑자기 안되는 게 제일 답답하다.
이번 경우도 잘 작동하던 경로가 갑자기 먹통이 되서 한참을 찾았다.
자기 환경에 맞는 경로를 설정해주는 게 중요한 것 같다.

기존 경로

mapper/*.xml

해결된 경로

classpath:mapper/**/*.xml

시도해본 경로

/mapper/*.xml
mapper/.xml
/mapper/.xml
classpath:mapper/.xml
classpath:mapper/*.xml
classpath:/mapper/*.xml
classpath:/mapper/.xml


도움받은 링크

https://trytoso.tistory.com/1573

스프링부트(spring boot) mybatis 에러 해결 invalid bound statement not found

스프링 부트에서 mybatis 사용할때 아래와 같이 계속 mapper 에러가 발생한다. org.apache.ibatis.binding.bindingexception invalid bound statement not found 여러가지 이유를 찾아보던중 가장 흔이 발생하는 mapper interfa

trytoso.tistory.com


thymeleaf th:each


왜 이렇게 안 되는지 몰랐는데
: 을 써야하는데 , 을 쓰고 있었다.
바보녀석

잘못 쓴 코드

th:each="groupName, ${GroupName}"


정정한 코드

th:each="groupName : ${GroupName}"



도움 받은 링크

phind.com
질문 thymeleaf th:each 이용해서 select 태그 option 채우기