에러를 맞았을 때 3

Web server failed to start. Port 8081 was already in use. 포트가 중복됐다고 실행되지 않을 때(mac)

mac 2022-02-16 16:34:18.854 ERROR 29791 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: Web server failed to start. Port 8081 was already in use. Action: Identify and stop the process that's listening on port 8081 or configure this application to listen on another port. Process finished..

mybatis select문 실행시 null 값 출력될 때

select문을 db에서 실행했을 때 결과값이 잘 나옴에도 불구하고 mybatis 연결해서 웹에 뿌릴 때 null 값이 출력된다면 내 db가 카멜케이스로 표기가 되어있는지 언더바를 잔뜩 써놨는지 한번 뒤져보는게 좋다. 이상하게 db에서는 select 문으로 조회했을 때 디비가 잘 출력되었는데 웹에서 [null]이라고만 출력되길래 어노테이션을 잘못쓴건지 중간에 오타가 있었는지 오만군데를 다 찾아봤는데 그냥 내 디비 자체가 언더바가 잔뜩 있어서 인식을 못했던 것이었다... 고치기 전 db 상태 고친 후 db 상태 p_id productId cate_id cateId p_name productName p_price productPrice p_inventory productInventory p_image pro..