목록Spring (16)
Chanho_Park
Controller에서 많은 변수들을 받아와 그것들을 다시 다음 Controller에 넘기고 싶을 때가 있다. 지금까지 return redirect+"?whatColumn="+searchvo.getWhatColumn()+"&keyword="+searchvo.getKeyword()+"&pageNumber="+searchvo.getPageNumber(); 이런 식으로 return 할 때 모든 변수를 붙히곤 했다. 코드도 깔끔하지 못할 뿐더러 보기에도 너무 힘들다. [해결방법] redirect 시 데이타를 전달할 수 있는 방법 RedirectAttributes 클래스를 사용하여 전달할 수 있다. RedirectAttributes 클래스는 Spring 3.1 버전에 추가되었다고 한다. redirect시 Redi..

There is no getter for property names '변수' in 'class java.langString' 변수 하나를 넘겨서 Mybatis 작성 시 변수 하나는 인식을 못하므로 Mybatis xml 에서 value 로 써주면 인식가능해짐.

Spring maven 프로젝트 run 중 다른 사람은 잘 작동하는데 내꺼에서는 작동하지 않는 문제 발생 아래와 같은 에러가 계속 나왔다. Controller에도 web.xml에도 다 잘 작성했는데 계속 이와 같은 오류가 발생했다. WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/controller/] in DispatcherServlet with name 'appServlet' [해결방법] 프로젝트 오른쪽버튼 properties - Java Build Path - Libraries 에 가면 ojdbc가 빨간색으로 x 표시 되어있을것이다. 해당 Jar를 Remove 해준 뒤 A..

pom.xml 에 들어가서 체크 된 HTTP/1.1 부분을 8080 -> 8081 로 변경

Oracle Cloud 에 접속 www.oracle.com/cloud Discover the Next Generation Cloud Platform Improve your organization's cloud performance and governance controls with Oracle Cloud Infrastructure. www.oracle.com 오른쪽 위에 Sign in to Oracle Cloud 클릭 Sign up 클릭 이름과 성은 영어로 입력 이메일 인증 메일 확인 메일에서 확인 후 정보 기입 * 주의할 점 Alternate Name 빼먹고 기입하시는 분들 있음. 기입 후 가입 다음 주소는 영어로 기입 영어 주소 사이트 https://www.jusoen.com * 주의할 점 핸드폰 기..

이러한 에러가 발생 Driver net.sf.log4jdbc.sql.jdbcapi INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started INFO : org.springframework.web.context.support.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Fri Oct 28 09:40:52 KST 2022]; root of context hierarchy INFO : org.springframework.beans.factory.xml.XmlBeanDefinition..