
Spring Boot
Zzooper
这个作者很懒,什么都没留下…
展开
-
Spring Boot创建一个RESTful Web Service
简述这篇文章简述了使用Spring Cloud创建一个简单的”hello world”的Restful Web Service流程。你将构建什么你将构建一个接收HTTP GET请求的服务: http://localhost:8080/greeting并且在请求时返回一个JSON格式的字符串: {"id":1,"content":"Hello, World!"}你也可以指定name参数: htt原创 2017-10-17 17:37:59 · 588 阅读 · 0 评论 -
Spring Boot 配置定时任务
你将做什么在这篇文章中,你将使用spring的@Scheduled注解构建一个每隔5秒输出一次当前时间和每分钟的第5秒输出一次当前时间的应用。你需要做什么maven引入spring boot的依赖<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="ht原创 2017-10-27 17:47:28 · 542 阅读 · 0 评论