- 博客(3)
- 问答 (2)
- 收藏
- 关注
原创 spring计划任务
spring从3.1开始,使用计划任务变得很简单,以下为测试案例,spring的基本环境构建这里省略。 1.编写计划任务执行类,使用@Scheduled注解声明为计划任务方法。 package com.task; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.st...
2018-07-21 21:08:50
726
原创 【springboot】基于springboot运行原理实现springboot的自动配置
本文参照Http编码的配置源码,自己实现一个starter。 1.新建maven工程。 在pom.xml中修改,添加autoconfigure依赖:<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc...
2018-04-03 17:51:52
463
翻译 http工具类
HttpUtils import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.security.KeyManagementException; import java.security.NoSuchAlgorithmException; import java.security
2017-03-21 14:07:23
447
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人