Fight With Me!!!

导航

2014年11月27日 #

Can not find the tag library descriptor for "http://www.springframework.org/tags"

摘要: 1.Download the Spring dependency jar2.Place it to the lib folder path is /WEB-INF/lib/spring.jar3.Then open the web.xml and the sample code is:/WEB-IN... 阅读全文

posted @ 2014-11-27 11:52 nickTimer 阅读(3100) 评论(0) 推荐(0) 编辑

java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory 解决方案

摘要: Spring3.1启动时报错:Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactoryat org.springframework.core.CollectionF... 阅读全文

posted @ 2014-11-27 11:49 nickTimer 阅读(301) 评论(0) 推荐(0) 编辑

2014年11月24日 #

内部循环

摘要: package com.local; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; public class TranslateList { public static void main(String[] args) t... 阅读全文

posted @ 2014-11-24 23:25 nickTimer 阅读(313) 评论(0) 推荐(0) 编辑

No Hibernate Session bound to thread, and configuration does not allow

摘要: 今天晚上挺悲催的,遇到了这个问题花费我很长时间,现在总结如下:到这这种情况的发生有两种情况:1,没有配置事物只要在Spring配置文件中添加如下代码: 然后在DAO程序前面加上@Transactional即可。2,连接数据的配置是否正确,如果连接字符串不正确的话,就不能够创建SessionFa... 阅读全文

posted @ 2014-11-24 22:27 nickTimer 阅读(139) 评论(0) 推荐(0) 编辑

sqlcmd导入大数据文件

摘要: sqlcmd导入大数据文件SQLCMD 允许在Windows命令窗中通过命令行提示符运行脚本.语法如下:sqlcmd[{ { -U [ -P ] } | -E }][-S [ \ ] ] [ -H ] [ -d ][ -l ] [ -t ] [ -h ][ -s ] [ -w ]... 阅读全文

posted @ 2014-11-24 21:34 nickTimer 阅读(546) 评论(0) 推荐(0) 编辑

将*.sql数据库脚本导入到sqlserver中(sql文件导入sqlserver)

摘要: 在SqlServer中这个是用生成sql脚本生成的要是在导入数据库用数据导入/导出向导导不进去 其实要用查询分析器来打开sql文件 然后执行就可以了 阅读全文

posted @ 2014-11-24 20:46 nickTimer 阅读(2367) 评论(0) 推荐(0) 编辑

日期转化为周次

摘要: // 都差不多, 你就将日期那个字段定义一个变量: String date,// 具体转的, 都是看 Calendar 的API String date="2015-05-07"; java.sql.Date dates = java.sql.Date.valueOf(date+""); // 将 阅读全文

posted @ 2014-11-24 18:02 nickTimer 阅读(654) 评论(0) 推荐(0) 编辑

2014年11月20日 #

sql server 2000能否得到一个表的最后更新日期?

摘要: 如果是SQL 2005 或 2008。运行下面的代码。就可以看到从上次启动SQL 服务以来,某个表的使用情况,包括select/update/delete/insert。 阅读全文

posted @ 2014-11-20 18:49 nickTimer 阅读(633) 评论(0) 推荐(0) 编辑

spring浏览器国际化的原理

摘要: We will add two languages support to our application: English and German. Depending on the locale setting of users browser, the appropriate language w... 阅读全文

posted @ 2014-11-20 09:27 nickTimer 阅读(448) 评论(0) 推荐(0) 编辑

2014年11月19日 #

在eclipse中建立子级源码文件夹

摘要: 在eclipse中建立子级源码文件夹右键点击项目 ---->new ---->source folder--->输入 src/main ---》勾选update exclusion filters in other source folders to solve nesting 选项 ,搞定 阅读全文

posted @ 2014-11-19 23:44 nickTimer 阅读(449) 评论(0) 推荐(0) 编辑