上一页 1 ··· 5 6 7 8 9 10 11 下一页
摘要: 【注】本文译自: https://www.tutorialspoint.com/spring_boot/spring_boot_consuming_restful_web_services.htm 本文将讨论如何使用 jQuery AJAX 来消费 RESTful Web 服务。 创建一个简单的 S 阅读全文
posted @ 2020-09-08 12:37 码者无疆 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 【注】本文译自:https://www.tutorialspoint.com/spring_boot/spring_boot_thymeleaf.htm Thymeleaf 是一个基于 Java 的库【译注:模板引擎】,可用于创建 web 应用。它对于 web 应用中的 XHTML/HTML5 提供 阅读全文
posted @ 2020-09-07 14:24 码者无疆 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 【注】本文译自: https://www.tutorialspoint.com/spring_boot/spring_boot_service_components.htm 服务组件是包含 @Service 注解的类文件。这些类文件可用在与 @RestController 类文件所不同的层来编写业务 阅读全文
posted @ 2020-09-04 18:49 码者无疆 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 【注】本文译自: https://www.tutorialspoint.com/spring_boot/spring_boot_file_handling.htm 本文学习如何使用 web 服务进行文件上传和下载。 文件上传 上传一个文件,可以使用 MultipartFile 作为请求参数,并且这个 阅读全文
posted @ 2020-09-03 13:34 码者无疆 阅读(366) 评论(0) 推荐(0) 编辑
摘要: 【注】本文译自: https://www.tutorialspoint.com/spring_boot/spring_boot_rest_template.htm Rest 模板用于创建消费 RESTful Web 服务的应用。你可以使用 exchange() 方法来消费所有 HTTP 方法的 we 阅读全文
posted @ 2020-09-02 10:44 码者无疆 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 【注】本文译自: https://www.tutorialspoint.com/spring_boot/spring_boot_servlet_filter.htm 过滤器是一种拦截应用中 HTTP 请求和响应的对象,使用过滤器,你可以执行以下两种情形下的两种操作: 在发送请求到到控制器之前 在发送 阅读全文
posted @ 2020-08-31 18:58 码者无疆 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 【注】本文译自: https://www.tutorialspoint.com/spring_boot/spring_boot_interceptor.htm 在以下两种情况下,可以在 Spring Boot 中使用拦截器来执行操作: 发送请求到控制器之前 发送响应到客户端之前 譬如,可以使用拦截器 阅读全文
posted @ 2020-08-31 11:50 码者无疆 阅读(455) 评论(0) 推荐(0) 编辑
摘要: 【注】本文译自:https://www.tutorialspoint.com/spring_boot/spring_boot_exception_handling.htm 对于企业应用而言,在 API 中处理好异常和错误是至关重要的。本文将带你学习如果在 Spring Boot 中处理异常。 在学习 阅读全文
posted @ 2020-08-23 01:30 码者无疆 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 【注】本文译自: https://www.tutorialspoint.com/spring_boot/spring_boot_building_restful_web_services.htm Spring Boot 提供了构建企业应用中 RESTful Web 服务的极佳支持。本文为你详解如何使 阅读全文
posted @ 2020-08-21 11:11 码者无疆 阅读(465) 评论(0) 推荐(0) 编辑
摘要: Spring Boot 使用 Apache Commons logging 作为内部日志。Spring Boot 缺省配置提供对于 Java Util Logging, Log4j2 和 Logback 的支持。这样,我们可以配置控制台或者文件日志。 阅读全文
posted @ 2020-08-14 15:33 码者无疆 阅读(175) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 下一页