프로그래밍246 log4j 설정 파일들의 위치는 src/main/resources log4j.properties # Set root logger level to DEBUG and its only appender to A1. log4j.rootLogger=DEBUG, A1 # A1 is set to be a ConsoleAppender. log4j.appender.A1=org.apache.log4j.ConsoleAppender # A1 uses PatternLayout. log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4jdbc.log4j2.properties log4jdbc.spylogdelegator.name = net.sf.log4jdbc.log.slf4j.Slf4jSpyLo.. 2021. 12. 7. log4jdbc에러 - Property 'driverClassName' threw exception; nested exception is java.lang.NoClassDefFoundError Log4j2는 api와 core로 나누어져있다. (참고: https://logging.apache.org/log4j/2.x/maven-artifacts.html) Property 'driverClassName' threw exception; nested exception is java.lang.NoClassDefFoundError 에러가 날땐 Log4j-api와 Log4j-core 메이븐을 추가하면 해결된다. org.apache.logging.log4j log4j-api 2.0.1 org.apache.logging.log4j log4j-core 2.0.1 2021. 12. 3. [Spring] 오라클 연결 설정 및 context를 불러오는 과정 처음 실행할때 프로젝트의 web.xml실행 web.xml contextConfigLocation classpath*:*-context.xml dispatcherServlet org.springframework.web.servlet.DispatcherServlet contextConfigLocation classpath*:/spring/servlet-context.xml 1 web.xml에서 servlet-context와 root-context를 불러옴 servlet-context root-context classpath:/main/java/com/mobile/sqlmap/**/*Mapper.xml classpath:/sqlmap/**/*Mapper.xml No qualifying bean of type .. 2021. 12. 3. [Spring]Dynamic Web Project를 Spring Project로 변경(mybatis 설정) 1. 프로젝트 우클릭 - Configure - Convert to Maven Project Create new POM 창이 나오면 finish를 할경우 WebContent에 pom.xml이 생성된다. pom.xml을 아래 코드와같이 수정 4.0.0 com spring_maven 0.0.1-SNAPSHOT war http://maven.apache.org oracle https://maven.jahia.org/maven2 1.8 5.1.5.RELEASE 1.6.10 1.6.6 jstl jstl 1.2 org.slf4j slf4j-api ${org.slf4j-version} org.slf4j jcl-over-slf4j ${org.slf4j-version} runtime org.slf4j slf4j-log4j.. 2021. 11. 26. 이전 1 ··· 39 40 41 42 43 44 45 ··· 62 다음