나의 개발 기록/ERROR !!14 Cannot create JDBC driver of class 'net.sf.log4jdbc.DriverSpy' for connect URL Cannot create JDBC driver of class 'net.sf.log4jdbc.DriverSpy' for connect URL context_datasource.xml 에 driverClassName 지정한게 오류가 나고있다. pom.xml 에서 dependency도 추가해서 org.bgee.log4jdbc-log4j2 log4jdbc-log4j2-jdbc4.1 1.16 이렇게 Maven Dependecies 안에 추가가 잘 되어있는데 오류가 계속 난다 결론! log4jdbc.log4j2.properties 파일을 추가해주자 어디에 ? /src/main/resources 에 해주면된다 log4j2.xml과 같은 위치에 넣어주면된다 만약 파일이 이미 존재한다면 내용을 아래와같이 수정해주자 l.. 2022. 8. 22. [전자정부프레임워크 / egov ] No mapping found for HTTP request with URI [XXXXXX] in DispatcherServlet with name 'action' 1. controller 확인 @RequestMapping(value = "", method = ) 위의 형태로 잘 되어있는지 확인해주고 경로도 알맞게 되어있는지. 오타는 없는지 다시한번 확인해준다 나는 잘되있었다........... 2. web.xml에서 DispatcherServlet 선언 되있는지 확인 action org.springframework.web.servlet.DispatcherServlet contextConfigLocation /WEB-INF/config/egovframework/springmvc/dispatcher-servlet.xml 1 마찬가지로 잘 되어있음! 3. dispatcher-servlet.xml 에서의 설정 확인 base-package가 egovframework 만 가.. 2022. 8. 18. the container pjoject and external dependencies references 컴퓨터를 껐다가 켰더니 갑자기 잘되던 프로젝트에서 path관련 오류가 난다 Description Resource Path Location Type The project was not built since it depends on Dcaf-Common, which has build path errors [ ] Unknown Java Problem the container pjoject and external dependencies references 띠용.. 찾아보니 프로젝트 자바버전이랑 sts 자바버전이 달라서 발생하는 에러라고 막 나오는데 아무리 봐도 자바버전을 바꾼적도없고 path설정도 잘 되어있어서 path관련 설정을 건드려도 에러는 해결되지않았다 그렇게 찾은 오류 원인!!! 작업관리자에서 java.. 2022. 8. 9. [JAVA] The maximum column width for an individual cell is 255 characters. 엑셀 다운로드 구현 중 java.lang.IllegalArgumentException: The maximum column width for an individual cell is 255 characters. 열 길이가 255자 제한이 있다고 한다. sheet.setColumnWidth 설정하는 영역에서 다음과같이 Math.min 이용해서 최소값 설정을 해주면 된다. 전 sheet.setColumnWidth(k, (sheet.getColumnWidth(k))+1024); 후 sheet.setColumnWidth(k, Math.min(255*256, (sheet.getColumnWidth(k))+1024)); 이제 오류없이 잘 엑셀다운이 된다 2022. 8. 9. [vue.js] has been blocked by CORS policy: No 'Access-Control-Allow-origin' header is present on the requested resource. vue에서 axios를 호출하여 데이터를 호출할때 CORS 오류가 난 모습 vue.config.js 에서 아래와같이 코드 작성해주면된다 module.exports = defineConfig({ devServer: { proxy: { '/api': { target:'http://localhost:8080', changeOrigin: true, pathRewrite: { '^/api': '' } } } } }); 위와 같이 정의를해주면 /api/memberList 로 호출하면 localhost:8080/memberList 로 호출이 된다! 그리고나서 실행해보면,, 이제 CORS 관련 오류는 나지않고 데이터가 잘 받아와지는 모습 2022. 7. 28. 이전 1 2 다음