亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb

首頁 > 學院 > 開發設計 > 正文

Spring Boot簡介

2019-11-08 01:35:35
字體:
來源:轉載
供稿:網友

SPRing Boot簡介

Spring Boot won’t replace the Spring Framework. That’s because Spring Bootisthe Spring Framework! Youcan view Spring Boot as a new way to create Spring applications with ease.Spring Boot simplifies the way you develop, because it makes it easy to create production-ready Spring-based applications that you canjust run. You will find out that, with Spring Boot, you can create standalone applications that use an embedded server, making them 100% runnable applications. I will talk about this in several chapters of the book. One of its best features is that Spring Boot is an “opinionated” technology in that it will help you follow the best practices for creating robust, extensible, and scalable Spring applications.     spring boot  基于spring框架,是一種新的創建spring應用的新方式,這種方式主要是基于maven的設計哲學--約定優于配置。一行代碼,一個注解就可以運行一個spring boot應用,其底層的配置,spring boot默認基于規則幫我們自動化處理了,避免了繁瑣的xmljava 方式的配置。

Spring Applications

If you are a Spring developer like me, you already know that in order to create a simple Spring webapplication, you must follow certain rules of the J2EE stack and some of the Spring Framework. Those rulesinclude the following:過去,我們創建一個spring web應用,要按照一系列步驟:Create a folder structure that contains your WAR (Web ARchive):? It must contain aWEB-INFfolder withliband classessubfolders that contain the third-party libraries andyour web application classes, respectively.? Some jsp (if needed), HTML, CSS, images, and JavaScript (if needed) files.? A file namedweb.xmlthat will contain the Springorg.springframework.web.servlet.DispatcherServletclass.? Your Spring beans in the form<servlet-name>-servlet.xml(of course, you canoverride this and add the complete location and name of your Spring beans).

Spring Boot to the Rescue

現在我們創建一個spring boot 應用: 
package com.sdcuike.spring;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;@SpringBootApplicationpublic class SimpleWebApp {    public static void main(String[] args) {        SpringApplication.run(SimpleWebApp.class, args);    }}基本上一行代碼,一個注解搞定。

Why Spring Boot?

Spring Boot has many features that make it suitable for:? Cloud Native Applications that follow the 12 factor patterns (developed by the Netflixengineering team at http://12factor.net/)? Productivity increases by reducing time of development and deployment? Enterprise-production-ready Spring applications? Non-functional requirements, such as the Spring Boot Actuator (a module thatbrings metrics, health checks, and management easily) and embedded containersfor running web applications (such as Tomcat, Undertow, Jetty, etc.)The term “microservices” is getting attention for creating scalable, highly available, and robustapplications, and Spring Boot fits there perfectly by allowing developers to focus only on the business logicand to leave the heavy lifting to the Spring Framework.

Spring Boot Features

Spring Boot has a lot of features that you’ll learn about in the following chapters, and here is just a taste:? The SpringApplicationclass. I showed you that in a Java Spring Boot application, the main method executes this singleton class. This particular class provides a convenient way to initiate a Spring application.啟動很方便。? Spring Boot allows you to create applications without requiring any XML configuration. Spring Boot doesn’t generate code.無需xml配置,利用java默認的配置或定制配置即可。? Spring Boot provides a fluent builder API through theSpringApplicationBuilder singleton class that allows you to create hierarchies with multiple application contexts. This particular feature is related to the Spring Framework and how it works internally. If you are a Spring developer already, you’ll learn more about this feature in the following chapters. If you are new to Spring and Spring Boot, you just need to know that you can extend Spring Boot to get more control over your applications.? Spring Boot offers you more ways to configure the Spring application events and listeners. This will be explained in more detail in the following chapters.? I mentioned that Spring Boot is an “opinionated” technology, which means that Spring Boot will attempt to create the right type of application, either a web application (by embedding a Tomcat or Jetty container) or a single application.? The ApplicationArgumentsinterface. Spring Boot allows you to access any application arguments. This is useful when you want to run your application with some parameters. For example, you can use--debug mylog.txtor--audit=true and have access to those values.? Spring Boot allows you to execute code after the application has started. The only thing you need to do is implement theCommandLineRunnerinterface and provide the implementation of the run(String ...args)method. A particular example is to initialize some records in a database as it starts or check on some services and see ifthey are running before your application starts. ? Spring Boot allows you to externalize configurations by using an application.propertiesorapplication.ymlfile. More about this in the following chapters.? You can add administration-related features, normally through JMX. You do this simply by enabling thespring.application.admin.enabledproperty in the application.propertiesorapplication.ymlfiles.? Spring Boot allows you to have profiles that will help your application run in different environments.? Spring Boot allows you to configure and use logging very simply.? Spring Boot provides a simple way to configure and manage your dependencies by using starter poms. In other Words, if you are going to create a web application, you only need to include thespring-boot-start-webdependency in your Maven pom or Gradle build file.? Spring Boot provides out-of-the-box non-functional requirements by using the Spring Boot Actuator, so you can see the health, memory, and so on, of your application.? Spring Boot provides@Enable<feature>annotations that help you to include, configure, and use technologies like databases (SQL and NoSQL), caching, scheduling, messaging, Spring integration, batching, and more.As you can see, Spring Boot has all these features and more, and you’ll learn more about these features inthe following chapters. Now it’s time to start learning more about Spring Boot by seeing how it works internally

Pro Spring Boot 讀書筆記

  

Pro Spring Boot

A no-nonsense guide containing case studies and best practices for Spring Boot

Author:Felipe GutierrezIsbn:1484214323Year:2016Pages:365Language:English
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb
日韩在线观看免费高清| 亚洲一区二区久久久| 性夜试看影院91社区| 亚洲精品资源在线| 亚洲一区二区三区乱码aⅴ蜜桃女| 亚洲在线免费看| 国产精品羞羞答答| 一本色道久久综合狠狠躁篇怎么玩| 欧美xxxx做受欧美| 亚洲美女www午夜| 国产日本欧美一区二区三区在线| 九九视频直播综合网| 国产欧美精品日韩精品| 黑人巨大精品欧美一区二区一视频| 国产乱肥老妇国产一区二| 久久不射热爱视频精品| 亚洲国产精品系列| 日韩欧美视频一区二区三区| 精品视频在线播放| 久久噜噜噜精品国产亚洲综合| 91久久夜色精品国产网站| 久久久精品久久| 韩国精品美女www爽爽爽视频| 欧美丝袜第一区| 国产综合视频在线观看| 午夜精品久久久久久久99黑人| 国模私拍一区二区三区| 亚洲韩国欧洲国产日产av| 成人国产在线激情| 亚洲a∨日韩av高清在线观看| 热re99久久精品国产66热| 九九热精品视频| 久久久精品一区| 国产成人在线精品| 91久久精品久久国产性色也91| 清纯唯美日韩制服另类| 成人激情在线观看| 日韩在线观看视频免费| 国产69精品99久久久久久宅男| 国产日韩在线一区| 51精品国产黑色丝袜高跟鞋| 亚洲美女视频网| 亚洲免费一在线| 成人在线激情视频| 亚洲激情视频在线| 亚洲一区二区三区sesese| 欧美一区视频在线| 欧美老少配视频| 亚洲奶大毛多的老太婆| 亚洲新中文字幕| 亚洲最大福利网站| 精品美女国产在线| 欧洲日本亚洲国产区| 一道本无吗dⅴd在线播放一区| 久久精品人人做人人爽| www.亚洲免费视频| 国产视频精品va久久久久久| 91精品国产成人| 欧美日韩成人在线观看| 在线观看国产成人av片| 日本精品一区二区三区在线| 日韩不卡中文字幕| 欧美性色视频在线| 国产精品嫩草视频| 亚洲欧洲午夜一线一品| 久久久久久久久亚洲| 国产精品极品尤物在线观看| 久久精品国产v日韩v亚洲| 亚洲精品国精品久久99热一| 97视频在线观看成人| 午夜欧美不卡精品aaaaa| 精品国产一区二区三区久久久| 日韩av片电影专区| 国产精品成人品| 午夜精品美女自拍福到在线| 欧美国产在线视频| 国产精品久久久久久超碰| 日韩精品999| 色综久久综合桃花网| 亚洲女人被黑人巨大进入| 成人在线精品视频| 国产精品扒开腿做爽爽爽男男| 色哟哟网站入口亚洲精品| 亚洲综合中文字幕在线观看| 中文字幕日韩在线播放| 69**夜色精品国产69乱| 精品亚洲一区二区三区| 97精品一区二区视频在线观看| 日韩中文字幕免费看| 55夜色66夜色国产精品视频| 欧美激情亚洲激情| 成人网在线免费看| 日本欧美国产在线| 欧美另类在线观看| 91欧美精品午夜性色福利在线| 午夜伦理精品一区| 日本久久91av| 国产成人综合精品在线| 亚洲欧洲国产伦综合| 亚洲国产精品女人久久久| 欧美激情在线一区| 伊人激情综合网| 欧美在线视频导航| 日韩精品久久久久| 在线观看欧美成人| 蜜臀久久99精品久久久无需会员| 91精品国产高清久久久久久| 国产精品嫩草视频| 精品人伦一区二区三区蜜桃免费| 亚洲人成网站免费播放| 欧美精品一本久久男人的天堂| 日韩av在线直播| 欧美大片免费观看在线观看网站推荐| 成人a免费视频| 欧美日韩成人精品| 伊人久久五月天| 亚洲精品视频播放| 国产精品国产亚洲伊人久久| 成人精品一区二区三区电影黑人| 亚洲精品av在线播放| 97超碰色婷婷| 欧美黑人巨大精品一区二区| 国产日产欧美a一级在线| 国产69久久精品成人看| 一色桃子一区二区| 91九色综合久久| 日韩精品电影网| 国产精品99久久久久久www| 亚洲精品国产suv| 亚洲日本中文字幕| 国产精品入口免费视| 欧美精品久久一区二区| 亚洲成av人影院在线观看| www.日本久久久久com.| 在线看日韩欧美| 中文字幕av日韩| 黄色一区二区三区| 亚洲久久久久久久久久久| 亚洲国产私拍精品国模在线观看| 久久成人精品电影| 最近2019年好看中文字幕视频| 日韩av片永久免费网站| 在线看福利67194| 国产精品丝袜久久久久久高清| 欧美超级乱淫片喷水| 国产精品av在线播放| 欧美成年人视频网站欧美| 成人精品视频在线| 日韩av色综合| 这里只有视频精品| 亚洲电影第1页| 激情久久av一区av二区av三区| 97香蕉久久超级碰碰高清版| 美日韩精品免费观看视频| 97久久超碰福利国产精品…| 日本高清+成人网在线观看| 国产精品久久久久久久久借妻| 欧美巨猛xxxx猛交黑人97人| 久久99视频免费| 成人精品视频在线| 91av国产在线| 综合136福利视频在线| 欧美亚洲日本黄色| 一个人www欧美|