전자정부 프레임워크 maven에서 oracle jar 받아올 때 생기는 에러 해결 방법 전자정부 프레임워크 maven 에서 oracle jar 파일을 받아오려고 하는데 아래와 같은 에러들이 발생했다.1. missing artifact ~~2. error in opening zip file결국 원격저장소에서 받아오는 방법 대신 로컬내에 jar 파일을 직접 넣어서 해결하였다.그리고 JDK8 버전은 ojdbc7 과 호환된다. com.oracle ojdbc7 12.1.0.2 system${basedir}/src/main/webapp/WEB-INF/lib/ojdbc7-12.1.0.2.jar 관련 링크 : https://okky.kr/article/382435 https://stackoverflow.com/questions/30928813/supported-jdbc-jdk-versions-for-or.. 백엔드/Spring 2019. 1. 8. 18:20
@RequestParam, @ModelAttribute에 대해 @RequestParam @RequestMapping(value = "myPracticeReqPmEgovMap.do")public String myPracticeReqPmEgovMap(@RequestParam String mvcSeqNo, ModelMap model) throws Exception { => 변수 이름이랑 파라미터 name 이랑 같아야 컨트롤러에서 전달 받을 수 있음@RequestMapping(value = "myPracticeReqPmEgovMap.do")public String myPracticeReqPmEgovMap(@RequestParam("mvcSeqNo") String mvcSeqNo, ModelMap model) throws Exception {=> mvcSeqNo 라는 파라미.. 백엔드/Spring 2018. 12. 4. 19:00
RedirectAttributes, ModelMap 비교 RedirectAttributes redirectAttributes : URL에 파라미터 노출됌, {param.RESULT} 로 받을 수 있음URL 파라미터 노출 제거를 위해 addFlashAttribute() 사용하면 됌, 이 때는 {RESULT} 로 받을 수 있음 ModelMap model : URL에 파라미터 노출안됌, redirect 할때는 model은 프론트단에 전달되지 않는다 백엔드/Spring 2018. 11. 26. 19:00
패키지 구조 정의에 대해.... http://egloos.zum.com/springmvc/v/434948 https://www.slipp.net/questions/36 https://groups.google.com/forum/#!topic/ksug/3Xg1Y8rsExQ 백엔드/Spring 2018. 7. 25. 22:33
root-context.xml과 servlet-context.xml root-context.xml : 웹 자원과 관련되지 않은 모든 자원의 설정을 위해서 존재 servlet-context.xml : 웹과 관련된 설정 백엔드/Spring 2018. 7. 23. 20:27
Spring component-scan 이란? @Component@Repository@Service@Controller Component-scan은 xml에 일일이 빈등록을 하지않고 각 빈 클래스에 @Component를 통해 자동 빈 등록이 된다.@Component @Controller @Service @Repository와 같은 어노테이션을 자동 등록 처리해준다. 예를 들어 위와 같은 xml bean 등록을 다 없애고 어노테이션으로 등록만 해주면 된다는 뜻이다. 출처 : http://yookeun.github.io/java/2014/07/04/spring-component-scan/ http://liante0904.tistory.com/113 백엔드/Spring 2018. 5. 20. 17:48
MyBatis 쿼리 실행 후 리턴 결과값 MyBatis Query 성공시 Select - Select문에 해당하는 결과Insert - 1 (여러개일경우도 1)Update - Update된 행의 개수 반환(없다면 0)Delete - Delete된 행의 개수 반환(없다면 0) 백엔드/Spring 2018. 3. 23. 12:26
Spring 환경설정 출처 : http://all-record.tistory.com/156 처음 설정할 때 제대로 안하면 나중에 에러 찾기가 너무 어렵다. 백엔드/Spring 2018. 3. 18. 20:17
Spring MVC 에서 mvc:resources 활용법 출처 : http://www.mkyong.com/spring-mvc/spring-mvc-how-to-include-js-or-css-files-in-a-jsp-page/ 경로 때문에 삽질하는게 너무 열받는다...... ㅂㄷㅂㄷ 백엔드/Spring 2018. 3. 18. 20:14