zoukankan      html  css  js  c++  java
  • 【Spring Boot 文档翻译】开始使用 Spring Boot

    这个部分也非常简单,主要介绍了 Spring Boot 特点,怎么安装,对系统的要求以及开发第一个Spring Boot应用。

    Spring Boot简介

    Spring Boot能根据开发者添加的jar包依赖,自动配置相应的Bean,从而大大减少开发者手动的配置。内嵌容器,不需要另外部署到传统的Tomcat这种容器中。
    因此Spring Boot能让用户迅速开发基于Spring的应用,尽可能减少繁琐的Spring配置,提升开发者的开发体验和开发效率。

    支持的Servlet容器

    基于Spring Boot开发的应用,不需要我们自己安装Servlet容器。支持的内置容器有:

    • Tomcat 9.0版本
    • Jetty 9.4版本
    • Undertow 2.0版本

    需要 Java8 和 Spring Framework 5.2.6 以上的支持。

    最简单的Spring Boot应用

    //只需要给主应用类加上@SpringBootApplication注解就可以
    @SpringBootApplication
    public class App {
    
    private static Logger logger = LoggerFactory.getLogger(App.class);
    public static void main(String[] args) {
    
        SpringApplication app = new SpringApplication();
        SpringApplication.run(App.class,args);
        logger.info("app start success...");
        }
    }
    

    版本迁移

    If you are upgrading from an earlier release of Spring Boot, check the “migration guide” on the project
    wiki that provides detailed upgrade instructions. Check also the “release notes” for a list of “new and
    noteworthy” features for each release.

    人生的主旋律其实是苦难,快乐才是稀缺资源。在困难中寻找快乐,才显得珍贵~
  • 相关阅读:
    EventBus
    Date 时间 日期 常用方法函数
    线程 Thread Handler
    MySQL-DoubleWrite
    MySQL各版本优化器变化
    MySQL优化器-条件过滤(condition_fanout_filter)
    PXC集群搭建
    mysql主从不一致--relay_log_recovery设置成0
    MySQL5.7-sql_mode
    根据ibd文件进行数据恢复或导入
  • 原文地址:https://www.cnblogs.com/54chensongxia/p/14411079.html
Copyright © 2011-2022 走看看