Spring Boot
忧国一小民
这个作者很懒,什么都没留下…
展开
-
SpringBoot | 第二章:lombok 介绍及简单使用
来源:oKong ,blog.lqdev.cn/2018/07/12/springboot/chapter-two/ 在去北京培训的时候,讲师说到了lombok这个第三方插件包,使用了之后发现,确实是个神奇,避免了编写很多臃肿的且定式的代码,虽然现代的IDE都能通过快捷键或者右键的方式,使用Generate Getters and Setters快速生成setters/getter...转载 2018-08-07 10:29:40 · 273 阅读 · 0 评论 -
SpringBoot | 第一章:第一个 SpringBoot 应用
来源:oKong ,my.oschina.net/xiedeshou/blog/1853320 springboot简单介绍 概述 随着动态语言的流行(Ruby、Groovy、Scala、Node.js),Java的开发显得格外的笨重:繁多的配置、低下的开发效率、复杂的部署流程以及第三方技术集成难度大。在上述环境下,Springboot应运而生。它使用”习惯优于...转载 2018-08-07 10:26:40 · 513 阅读 · 0 评论 -
SpringBoot | 第三章:springboot 配置详解
来源:oKong ,blog.lqdev.cn/2018/07/14/springboot/chapter-third/ 基于springboot的约定优于配置的原则,在多数情况下,启动一个应用时,基本上无需做太多的配置,应用就能正常启动。但在大部分开发环境下,添加额外配置是无所避免的,比如自定义应用端口号(比较在机器比较少的情况下,一台机器还是需要部署多个应用的,当然利用dock...转载 2018-08-07 10:32:58 · 263 阅读 · 0 评论 -
SpringBoot | 第四章 :日志管理
来源:翟永超 ,blog.lqdev.cn/2018/07/15/springboot/chapter-four/ Spring Boot在所有内部日志中使用Commons Logging,但是默认配置也提供了对常用日志的支持,如:Java Util Logging,Log4J, Log4J2和Logback。每种Logger都可以通过配置使用控制台或者文件输出日志内容。 ...转载 2018-08-07 10:43:59 · 223 阅读 · 0 评论 -
Spring Boot 启动Banner设置--启动彩蛋
Spring Boot启动时会显示如下图标:. ____ _ __ _ _/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \\\/ ___)| |_)| | | | | || (_| | ) ) ) )' |____| .__...转载 2018-08-07 15:08:38 · 18800 阅读 · 1 评论 -
Spring Boot 常用属性汇总
# ===================================================================# COMMON SPRING BOOT PROPERTIES## This sample file is provided as a guideline. Do NOT copy it in its# entirety to your own appl...转载 2018-05-27 22:27:04 · 1745 阅读 · 0 评论 -
Spring Boot中加载自定义Servlet&Filter&Listener&Interceptor
Web开发使用Controller基本上可以完成大部分需求,但是我们还可能会用到Servlet、Filter、Listener、Interceptor等等。当使用Spring-Boot时,嵌入式Servlet容器通过扫描注解的方式注册Servlet、Filter和Servlet规范的所有监听器(如HttpSessionListener监听器)。Spring boot的主Servlet为Disp...转载 2018-05-15 16:48:11 · 1260 阅读 · 0 评论 -
SpringBoot:自定义Starter
一 概述SpringBoot 个人感觉特点:1)众多库的集合(各种Starter),方便快速构建应用系统。2)自动配置spring(通过AutoConfiguration机制),简化配置,也方便扩展新的Starter。3)内嵌web容器,无需WAR部署。 本文自定义一个helloworld-starter 揭示starter的定义过程,及Spring AutoConfigu...转载 2018-06-21 23:33:35 · 574 阅读 · 0 评论