[JPA] Method is only allowed for a query
Method is only allowed for a query. Use execute or executeUpdate instead of executeQuery; SQL statement: INSERT INTO member (MEMBER_ID, NICK_NAME, EMAIL, PASSWORD, MEMBER_AUTH, MEMBER_STATUS) VALUES (?, ?, ?, ?, 'User', 'Active') 이 에러가 발생한 원인은 어노테이션때문에 발생한 에러이다.JPA에서 쿼리를 구분할때 데이터를 반환하는가 수정 혹은 실행하는 가로 구분하게 된다. SELECT문인 executeQuery는 데이터를 반환을 목적으로 한다. INSERT문, UPDATE문, DELTE문은 execute나 executeUpda..
[Spring] SQLErrorCodesFactory
INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader(loadBeanDefinitions:317)- Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml] INFO org.springframework.jdbc.support.SQLErrorCodesFactory(:127) - SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase, Hana] => DB에 연결이 안된다던지 잘못된 쿼리문을..