Springboot 架構學習

來源:互聯網
上載者:User

標籤:group   等等   version   targe   metrics   func   運行   follow   conf   

Springboot 架構學習前言

Spring Boot是Spring 官方的頂級項目之一,她的其他小夥伴還有Spring Cloud、Spring Framework、Spring Data等等。

簡介

Spring Boot可以輕鬆建立單獨的,基於生產級的Spring應用程式,您需要做的可能“僅僅是去運行”。 我們提供了Spring Platform對Spring 架構和第三方庫進行處理,儘可能的降低使用的複雜度。大多數情況下Spring Boot應用只需要非常少的配置。

Features(她的特點)

  • Create stand-alone Spring applications
  • Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files)
    快速構建獨立的Spring Application,使用內嵌容器,無需部署到外部容器,你要做的僅僅是運行她。
  • Provide opinionated ‘starter‘ POMs to simplify your Maven configuration
  • Automatically configure Spring whenever possible
    提供眾多擴充的‘starter’,通過依賴探知自動設定,你要做的僅僅是添加Maven依賴。
  • Provide production-ready features such as metrics, health checks and externalized configuration
    提供生產環境下的效能健康狀態監控及外部化配置,讓你時刻掌控她。
  • Absolutely no code generation and no requirement for XML configuration
    無需產生代碼及XML配置,一切從簡。

通過上面官網的描述,其實我總結下來就兩條:

  • ** 依賴探知,自動設定**
  • 一切從簡,Just Run !嘗試
    1. 配置你項目的pom.xml
    <parent>  <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.4.1.RELEASE</version></parent><dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency></dependencies>
    1. 建立Application.java
    @RestController@EnableAutoConfigurationpublic class Application { @RequestMapping("/") String index() { return "Welcome to know Spring Boot !"; } public static void main(String[] args) throws Exception { SpringApplication.run(Application.class, args); }}
    1. Just Run,執行Application.main() 或者 mvn:spring-boot:run
      啟動成功後,訪問http://localhost:8080/

    可能僅僅不到1分鐘便可快速構建、部署、啟動一個Web 應用程式,這就是Spring Boot ~

    Springboot 詳細的學習資料
  • 1190000008539153

 

Springboot 架構學習

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.