Mybatis 에서 multiple select key 사용하기. Could not set property , Error selecting key or setting result to parameter object 에러 해결하기. 마이바티스

Mybatis 에서 multiple select key 사용하기. Could not set property , Error selecting key or setting result to parameter object 에러 해결하기 Mybatis의 Select key 를 쓰다 보면 한번에 여러개의 값을 select 해와야 할 때가 있습니다. 저의 경우에는 issue 라는 테이블에 저장되는 넘버 값이 1. 전체 프로젝트에서 해당 issue 의 넘버 2. 해당 issue 가 속한 프로젝트에서의 해당 issue 넘버 이렇게 두개의 넘버 값이 저장 됩니다. 테이블 구조는 아래와 같습니다. 그러다 보니 select key 에서 issue_sid, issue_no 값을 받아오고 난 후에 insert 를 해야 하는데요,..

Programming/JPA ⁄ Spring 2021.06.01
<!DOCTYPE html> 에 Uncaught SyntaxError: Unexpected token '<' 뜰때 해결하기

Controller에서 일정 패턴으로 URL을 맵핑 시키고 있었습니다. PathVariable을 적극적으로 이용해서 심플한 url 패턴을 만들어보자! 해서 localhost/project이름/로그인사용자닉네임/사용모듈 ... 으로 depth 구조를 만들어서 Controller에서도 정규식을 이용해 맵핑을 시키고 있었는데요. 기여코 이 에러를 또 다시 마주하고야 말았습니다. 결론부터 말씀드리자면, .css 나 .js 같은 파일들 마저 Controller 가 잡아서 제멋대로 html 데이터로 응답을 하다 보니 해당 에러가 발생 한 것 입니다. 이걸 힌트로 해결 할 수 있는 분들은 해결 하시면 되고, 저와 같은 문제인 분들은 아래 이어질 해결 방법을 따라가시면 됩니다. servlet-context.xml에 m..

Programming/JPA ⁄ Spring 2021.05.27
Spring Junit 테스트시 Caused by: java.io.FileNotFoundException: ServletContext resource [/WEB-INF/tiles/tiles.xml] cannot be resolved to URL because it does not exist 오류 해결

java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124) ~[spring-test-4.3.25.RELEASE.jar:4.3.25.RELEASE] at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83) ~[spring-test-4.3.25.RELEAS..

Programming/JPA ⁄ Spring 2021.05.21
JDBC 와 MYSQL 연동하기 9) Semantic UI 적용해보기 (BootStrap 대안)

최종 프로젝트를 할때 모든 팀이 BootStrap을 이용할 것 으로 보여 너무 획일화 된 디자인의 웹 사이트들이 나오지 않을까 싶어 다른 대안들을 몇개 찾아보았습니다. 그러던중 Semantic UI가 요즘 트렌드에도 맞아 보이고 BootStrap과 기능이나 사용상의 차이는 그닥 커보이지 않아서 Semantic UI를 써보려고 합니다. semantic-ui.com/introduction/getting-started.html Getting Started | Semantic UI semantic-ui.com 위의 사이트에서 다운받습니다. 본인의 취향에 맞게 바꿔가면서 쓰려면 Building Tool을 설치해서 한다는데, 아직 기본적인 것도 사용해 보지 않았으니, 일단 기본적인 Default Theme 을 써보..

Programming/JPA ⁄ Spring 2021.04.21