![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
文章平均质量分 55
cy913417
这个作者很懒,什么都没留下…
展开
-
Could not load JDBC driver class [com.microsoft.sqlserver.jdbc.SQLServerDriv
Spring的JDBCTemplate,产生了Exception in thread "main" org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedExce...原创 2013-03-21 13:13:11 · 1548 阅读 · 0 评论 -
log4j 重写JDBCAppender时使用spring管理的bean
在使用log4j往数据库里写日志时 有以下两种方式可实现: 1. 在自己重写的MyJDBCAppender中 手动调用applicationContext.xml时 在手动获取datasource (bean) ApplicationContext context = new ClassPathXmlAp...原创 2012-07-24 09:11:29 · 435 阅读 · 0 评论 -
Struts2 指定某些请求或servlet不被拦截
在正常的项目运行中,有时我们需要某些特定的url或者servlet 或者静态资源不被struts2的过滤器所拦截 2.1.8以后貌似可以在配置文件中直接配置 在Struts2中的配置文件中配置将servlet或指定资源排除: struts.action.excludePattern=/js/.* struts.action.excludePattern=/aaa/bbb.cc ...2013-05-06 17:44:28 · 1153 阅读 · 0 评论