06 2016 档案

摘要:/* * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi 阅读全文
posted @ 2016-06-30 17:29 人在囧途-博客 阅读(356) 评论(0) 推荐(0) 编辑
摘要:<mvc:annotation-driven /> 是一种简写形式,完全可以手动配置替代这种简写形式,简写形式可以让初学都快速应用默认配置方案。<mvc:annotation-driven /> 会自动注册DefaultAnnotationHandlerMapping与AnnotationMetho 阅读全文
posted @ 2016-06-30 17:02 人在囧途-博客 阅读(167) 评论(0) 推荐(0) 编辑
摘要:当我们需要使用BeanPostProcessor时,直接在Spring配置文件中定义这些Bean显得比较笨拙,例如: 使用@Autowired注解,必须事先在Spring容器中声明AutowiredAnnotationBeanPostProcessor的Bean: 使用 @Required注解,就必 阅读全文
posted @ 2016-06-30 17:01 人在囧途-博客 阅读(217) 评论(0) 推荐(0) 编辑
摘要:mybatis-generator有三种用法:命令行、eclipse插件、maven插件。个人觉得maven插件最方便,可以在eclipse/intellij idea等ide上可以通用。 下面是从官网上的截图:(不过官网www.mybatis.org 最近一段时间,好象已经挂了) 一、在pom.x 阅读全文
posted @ 2016-06-12 16:25 人在囧途-博客 阅读(262) 评论(0) 推荐(0) 编辑
摘要:首先,@value需要参数,这里参数可以是两种形式:@Value("#{configProperties['t1.msgname']}")或者@Value("${t1.msgname}"); 其次,下面我们来看看如何使用这两形式,在配置上有什么区别: 1、@Value("#{configProper 阅读全文
posted @ 2016-06-07 13:49 人在囧途-博客 阅读(2486) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示