본문 바로가기

개발/Spring4

ORA-12505 에러 해결방법 ORA-12505 에러 해결방법 Oracle 데이터베이스를 JdbcTemplate를 이용하여 연동 할경우 발생하는 오류이다. 에러내용은 다음과 같다 메세지 Request processing failed; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Listener refused the connection with the following error: 근본원인 org.springframework.jdbc.CannotGetJdbcConnectionException: Could not.. 2020. 5. 16.
Annotation(어노테이션) 을 쓰기위한 xml설정 1. XML 파일에서 xml네임스페이스를 추가 -> xmlns:context="http://www.springframework.org/schema/context" 2. xsi:schemaLocation 추가 Default xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> 추가 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springfr.. 2020. 4. 1.
java.sql.SQLException: 부적합한 Oracle URL이 지정되었습니다 (오류해결) DriverManager.getConnection 에서 Oracle URL을 설정하는데 분명 제대로 적었는데... "jdbc:oracle:thin@localhost:1521:xe" --> "jdbc:oracle:thin:@localhost:1521:xe" : 이걸 까먹었네요 저와 같은 증상을 겪으신분들은 이걸 참고하시기 바랍니다 시 덕분에 시간 엄청날렸네요 ㅜㅜ 2020. 3. 15.
Java request.getParameter() 한글깨짐 오류 해결 클라이언트에서 request.getParameter() 로 받아온 파라미터를 출력하거나, JDBC로 데이터를 DB에 저장할때 한글깨짐이 발생합니다. jsp나 html의 한글인코딩의 문제인가 보니 UTF-8로 잘설정이 되어있습니다. 이때 해결방법입니다. Server에서 자신이 사용하고 있는 서버로 들어가(ex Tomcat) server.xml 파일을 엽니다. server.xml에서 ctrl + F 를 눌러 Connector를 검색합니다. ​​​ 2020. 3. 11.