原创 Spring Boot之Servlets, Filters, listeners (五)

web 應用開發-Servlets, Filters, listeners Web 開發使用 Controller 基本上可以完成大部分需求,但是我們還可能會用到 Servlet、 Filter、Listener 等等 >在 sprin

原创 Spring Boot快速入門 (一)

1、IDE工具的安裝和使用 1.1、下載IDE Spring Tool Suite Eclipse 1.2、介紹 maven是學習Spring Boot必備之一 Spring Tool Suite可快速搭建Spring Boo

原创 Spring Boot錯誤處理 (四)

web應用開發-錯誤處理 ① 方法一:Spring Boot 將所有的錯誤默認映射到/error, 實現ErrorController @Controller @RequestMapping(value = "error") public

原创 Spring Boot日誌配置 (二)

支持日誌框架:Java Util Logging, Log4J2 and Logback,默認是使用logback 配置方式:默認配置文件配置和引用外部配置文件配置 1、默認配置文件配置 不建議使用:不夠靈活,對log4j2等不夠友

原创 Spring Boot模板引擎 (三)

1、web應用開發之模板引擎 1.1、spring boot的web應用開發,是基於spring mvc 1.2、Spring boot 在spring默認基礎上,自動配置添加了以下特性: 包含了ContentNegotiatin