본문 바로가기

개발6

C# 엑셀 사용 (Microsoft.Office.Interop.Excel 참조 추가) C# 엑셀 사용 (Microsoft.Office.Interop.Excel 참조 추가) C#은 마이크로소프트에서 개발한 객체지향 기반의 언어로서 윈도우 기반 GUI프로그램을 쉽게 만들수 있는 프로그래밍 언어입니다. 자바보다 점유율은 낮으나 윈도우 프로그램에 최적화, 다른 MS의 프로그램과의 호환성등이 장점입니다. 가장 많이 사용되는 분야는 Microsoft office 프로그램인 엑셀자동화 기능입니다. Microsoft.Office.Interop.Excel 을 사용하면 엑셀파일을 컨트롤 할수 있습니다. using Excel = Microsoft.Office.Interop.Excel; 지시문을 추가하면 되는데 단순히 문장만 추가한다면 참조를 추가하라는 말이 나옵니다. 참조를 추가하는방법에 대해서 알아보도록 .. 2020. 5. 20.
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.