
Spring
ziwi821
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
spring cron表达式 Spring定时器
Cron表达式是一个字符串,字符串以5或6个空格隔开,分开工6或7个域,每一个域代表一个含义,Cron有如下两种语法 格式: Seconds Minutes Hours DayofMonth Month DayofWeek Year 或 Seconds Minutes Hours DayofMonth Month DayofWeek 每一个域可出现的字符如下: 代码Se...2011-08-30 10:56:09 · 214 阅读 · 0 评论 -
Spring 定时器简单配置
要使用Spring的定时器,首先必须得所定时器的支持jar包加载到项目中的lib下。(quartz-1.7.3.jar---附件中可以下载)在web.xml中加载spring的这个配置文件我就不多讲了。我喜欢把这个配置文件命名为(applicationContext-quartz.xml)下面我把定时器的配置文件贴出来供大家参考: <?xml version="1.0" en...2011-08-30 11:15:50 · 130 阅读 · 0 评论 -
格式化Hibernate的SQL输出语句
在 applicationContent.xml 文件中加入以下程序代码,及可以Console中看到 Hibernate 执行sql 语句. org.hibernate.dialect.MySQLDialect true true false原创 2010-12-08 17:22:04 · 229 阅读 · 0 评论 -
Spring security 11种过滤器介绍
1.HttpSessionContextIntegrationFilter/j_spring_security_check,提交登陆信息的URL地址。自定义form时,要把form的action设置为/j_spring_security_check。注意这里要使用绝对路径,避免登陆页面存放的页面可能带来的问题。j_username,输入登陆名的参数名称。j_password,输...原创 2011-03-31 10:59:43 · 156 阅读 · 0 评论 -
Spring注解@Component、@Repository、@Service、@Controller 区别
Spring 2.5 中除了提供 @Component 注释外,还定义了几个拥有特殊语义的注释,它们分别是:@Repository、@Service 和 @Controller。在目前的 Spring 版本中,这 3 个注释和 @Component 是等效的,因为他们的代码实现都是一样的,我们先来看这几个的源码实现,源码实现在Spring-context的jar包里面。@Tar...2013-11-15 15:31:10 · 159 阅读 · 0 评论