스프링 7

[MyBatis] MyBatis로 조회할 때 It's likely that neither a Result Type nor a Result Map was specified.

Spring + Mybatis 개발환경으로 개발하다가 select구문으로 조회를 하려고 하니 갑자기 에러가 떴다. 무슨 에러인지 확인하려고 콘솔창을 보니까 It's likely that neither a Result Type nor a Result Map was specified. 라는 메시지가 찍혀있었다. 즉, 결과 유형이나 결과 맵이 지정되지 않았을 가능성이 있습니다. 라는 뜻인데 어느 부분에서 에러가 나는건지 확인을 하러 소스를 찾아봤다. 결국 찾다가 발견한 곳은 sql구문이 적혀있는 mapper.xml쪽... SELECT user_nm FROM user_login_mngt WHERE user_nm = #{USER_NM} xml 소스를 보면 parameterType은 정의를 해놨지만 resu..

[Spring] 스프링 개발(STS설치, 프로젝트 생성)

오늘은 Spring Legacy Project를 직접 생성해 보도록 하겠습니다. 먼저 Spring Project를 생성하기 위해서는 STS를 깔아야 합니다. STS는 아래와 같이 이클립스 마켓에서 설치를 할 수 있습니다. Help -> Ecilpse Marketplace를 선택해 줍니다 sts를 검색해 주신 후 Spring Tolls 3 Add-On for Spring Tools4 3.9.14.RELEASE 버전을 Install 해줍니다 Install을 누르면 아래와 같은 화면이 나오게 되는데 Confirm을 눌러서 다음으로 넘어갑니다 I accept the terms of the license agreements를 체크하고 next를 눌러줍니다. 위의 과정을 다 거치고 나면 STS가 설치가 완료가 되었..

[Spring] 스프링 개발(개발환경 만들기 Eclipse, JDK 설치)

1. Eclipse 다운로드 Eclipse Tool을 다운로드하기 위해 아래의 링크로 접속해 줍니다. www.eclipse.org/downloads/ Eclipse Downloads | The Eclipse Foundation The Eclipse Foundation - home to a global community, the Eclipse IDE, Jakarta EE and over 375 open source projects, including runtimes, tools and frameworks. www.eclipse.org 다운로드한 exe 파일을 눌러 실행시켜주면 아래와 같은 화면이 나올 텐데 두 번째인 Eclipse IDE for Enterprise Java Developers를 눌러 설치해..