jdbc.exception.NestedSQLException ibatis,提示如下错误,不知道怎么回事

2025-02-21 17:27:38
推荐回答(3个)
回答1:

web.xml发现在加载org.springframework.web.context.ContextLoader这个listener之后才加载org.springframework.web.util.Log4jConfigListener,把log4j的配置放到org.springframework.web.context.ContextLoader之前,就可以解决这个问题了。


 
 
  log4jConfigLocation
  /WEB-INF/log4j.properties
 

 
 
  log4jRefreshInterval
  60000
 

 
  
   org.springframework.web.util.Log4jConfigListener
  

 


 
  
   org.springframework.web.context.ContextLoaderListener
  

 

回答2:

估计是这里大意com/lcc/ibatistest/Student.xml写错了,改成
com.lcc.ibatistest.Student.xml

回答3:

报告这种异常的原因有很多7需要提供更多的信息