自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 清理git提交.gitignore中过滤文件

git rm -r --cached .git add .git commit -m ".gitignore is now working

2017-09-12 10:45:43 612

原创 Spring事务

代码实现方式: xml配置:<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate"> <property name="dataSource" ref="dataSource"></property> </bean> <!-- 配置Spring的事务管理器 --> <b

2017-08-23 15:50:58 241

原创 excel导出

excel导出

2017-08-23 11:42:47 340

转载 负载均衡、分布式、集群的关系?

负载均衡、分布式、集群的关系?分布式,一个任务由多个人协作完成 比如饭馆里有负责点菜的,有负责做菜的,有负责传菜的。 比如饭馆里有买菜的,洗菜的,切菜的,炒菜的 比如饭馆里有好几个负责做菜的集群,多个人紧密协作,来完成一个工作,就像一个人似的 比如饭馆里的所有厨师,或者所有工作人员可以看作一个集群 集群有很多好处: 是做菜的能力比一个人增加了 多招一个厨子,就能轻易增加做菜的

2016-11-28 10:44:48 339

原创 Spring单元测试

Spring单元测试import org.junit.Test;import org.junit.runner.RunWith;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.test.context.ContextConfiguration;import org

2016-09-08 14:12:01 243

原创 SpringMVC对REST服务使用mockmvc 做测试

SpringMVC对REST服务使用mockmvc 做测试 pom.xml配置 <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>4.2.4.RELEASE</ver

2016-09-08 11:28:41 810

原创 SpringMVC注解

SpringMVC注解使用@Scheduled注解执行定时任务xml配置:<task:annotation-driven executor="myExecutor" scheduler="myScheduler"/><task:executor id="myExecutor" pool-size="5"/><task:scheduler id="myScheduler" pool-size=

2016-09-07 10:22:43 376

原创 SpringMVC启动后初始化

SpringMVC启动定时任务第一种方式: 实现InitializingBean接口,实现其afterPropertiesSet()方法import java.util.concurrent.Executors;import java.util.concurrent.ScheduledExecutorService;import java.util.concurrent.Time

2016-09-03 10:04:13 3729

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除