SEVERE: 경로 []의 컨텍스트 내의 서블릿 [app]을(를) 위한 Servlet.service() 호출이, 근본 원인(root cause)과 함께, 예외 [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for menu.select_keyword..
Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Constructor threw exception; nested exception is java.lang.NoClassDefF..

Spring에서 데이터를 post로 전달한 후 한글이 깨지는 현상이 발생했다. '김가네'를 '김가네김가네'로 수정하려고 했는데 잉 갑자기 이상한 문자로 바뀌었다. 해결방법은 컨트롤러마다 코드를 추가해 주어야 하는 방법도 있지만 모든 컨트롤러에 해줄 수 없으니(많은경우) web.xml에 아예 박아버리는 방법을 선택했다. web-app 태그 안에 아무대나 써주면 된다. encodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8 encodingFilter /* 그러면 결과 깔끔해게 한글로 나온다~ 참고 : killsia.tistory.com/entry/Spring%EC%97%90%EC%84%9C-post-%EB%B0%..
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException: ### Error querying database. Cause: org.postgresql.util.PSQLException: 오류: 연산자 없음: bigint = character varying Hint: 지정된 이름 및 인자 형식과 일치하는 연산자가 없습니다. 명시적 형변환자를 추가해야 할 수도 있습니다. Position: 125 ### The error may exist in file [C:\workspace-spring-tool-sui..
PK가 NOT NULL이라서 데이터를 넣지 않으면 오류가 생길 때 PK에 자동적으로 숫자(+1)를 넣어주는 방법입니다. auto_increment를 설정해 주면 되는데 이미 테이블과 칼럼을 생성한 후라면 ALTER을 이용하여 수정해 주면 됩니다. CREATE SEQUENCE [sequence name]; ALTER TABLE [table name] ALTER COLUMN [column name] SET DEFAULT nextval('[sequence name]'); ALTER SEQUENCE [sequence name] OWNED BY [table name].[column name]; 다들 눈치 채셨겠지만 여기서 []안의 값은 여러분에게 맞는 설정값을 넣어주면 됩니다([]도 지워야합니다!) 예시를 들자면..

서버 오류 CGLIB is required to process @Configuration classes. Either add CGLIB to the classpath or remove the following @Configuration bean definitions: [applicationConfig] 가 뜰 때 pom.xml cglib cglib 2.2.2 추가하면 짠! 다시 정상적으로 페이지가 뜨는 것을 볼 수 있다. 번외)------------------------------------------------------------------- 한글이 이렇게 ??로 뜬다면? ↓↓↓↓ https://chikaka-dev.tistory.com/16 [Spring] 웹에서 한글 깨짐 해결 모든 설정에 UTF..

chikaka-dev.tistory.com/15 [Spring] spring(sts) postgresql DB 연동 #Spring Tool Suite 4 #PostgreSQL 13 (pgAdmin 4) 1. DB 준비 CREATE TABLE account ( account_idx INTEGER PRIMARY KEY, id character(8) ) INSERT INTO account VALUES ('1','test'); SELECT * FROM account;.. chikaka-dev.tistory.com chikaka-dev.tistory.com/17?category=883203 [Spring] DB에서 데이터 가져오기 spring에 포함된 파일의 자세한 내용이 궁금하면 여기를 참고하세요! chikak..

spring에 포함된 파일의 자세한 내용이 궁금하면 여기를 참고하세요! chikaka-dev.tistory.com/15 [Spring] spring(sts) postgresql DB 연동 #Spring Tool Suite 4 #PostgreSQL 13 (pgAdmin 4) 1. DB 준비 CREATE TABLE account ( account_idx INTEGER PRIMARY KEY, id character(8) ) INSERT INTO account VALUES ('1','test'); SELECT * FROM account;.. chikaka-dev.tistory.com 여기서 생성한 프로젝트를 바탕으로 응용한 내용입니다. Spring 을 이용하여 DB에 있는 데이터 중 선택한 열의 전체 데이터를 ..