spring 4

[SPRING/Eclipse] 한글 주석 깨짐 현상 해결

문제 git으로 import한 프로젝트에서 한글 주석이 깨져, 제대로 보이지 않는 현상이 있었습니다. 해결방법 1. 왼쪽 상단의 Window - Preferences를 들어갑니다. 2. General - Workspace에 들어갑니다. 3. Workspace 제일 하단 왼쪽 Text file encoding에 Default(MS949)를 Other(UTF-8)로 변경해줍니다. 4. 설정을 Apply 해준 후, 깨진 주석을 확인합니다. 만약 이 방법으로 해결이 되지 않는다면, 파일 encoding이 euc-kr로 설정되어 있을 확률이 높습니다. 이 경우, 에디터 등을 활용하여 파일의 인코딩이 euc-kr로 맞춰져 있는지 확인해보시기 바랍니다.

Programming/SPRING 2021.09.13

[Spring Java] Hot code replace failed : scheme change not implemented

빌드할 때 마우스로 뭔가 잘못 눌렀는데 뜬 경고창 에러는 아니지만 찝찝해서 찾아보니 디버깅을 눌렀던 것 같습니다.. 디버깅 모드에서 빌드를 하면 이런 경고창이 뜬다네요 디버깅 모드를 해제(🕷)하고 다시 빌드하니까 경고창 없이 잘 실행 됩니다. (정지(빨간 네모) 클릭 후 다른 걸 선택하고 실행) 만약 저 경고창을 다시 보고싶지 않다면, Window - Preference - Java - Debug에 들어갑니다. 그리고 Hot Code Replace 에서 두번째에 있는 Show error when hot code replace fails를 선택 해제하면 됩니다.

Programming/Java 2021.08.26

[Spring Mybatis Error] Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'id..

mybatis 연동 중 발견된 오류 Request processing failed;nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'dialogdesigner.idd.getManagerList'. It's likely that neither a Result Type nor a Result Map was specified. 오류의 마지막 문장을 보면, -> It's likely that neither ..

Programming/SPRING 2021.08.05

[Spring Java] Controller에서 RequestMapping value 여러 개 작성하기

보통은 Controller에서 RequestMapping을 할 때 다음과 같이 value를 하나씩 매핑하게 됩니다. @RequestMapping(value="/example/url01.do") 만약 url01과 url02가 같은 Controller에서 같은 동작을 해야한다면, 중복코드를 줄이고 싶다면, 다음과 같이 RequestMapping value 값에 두 url 모두 매핑하여 같이 쓸 수 있습니다. // 다음과 같이 value 값을 중괄호({})로 묶고, 구분을 콤마(,)로 해주어 여러 개의 url을 작성할 수 있음 // value = {"","","",""} @RequestMapping(value= {"example/url01.do", "example/url02.do"}) public String..

Programming/Java 2021.07.22