SpringBoot的理解
来源:互联网 发布:linux常用的命令有哪些 编辑:程序博客网 时间:2024/06/08 15:12
1 概念
官网上的解释: Features Create stand-alone Spring applications Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files) Provide opinionated 'starter' POMs to simplify your Maven configuration Automatically configure Spring whenever possible Provide production-ready features such as metrics, health checks and externalized configuration Absolutely no code generation and no requirement for XML configuration 能够创建独立的spring应用 内置了Tomcat, Jetty or Undertow这些服务器,也不需要部署war文件,也就是不需要web.xml 提供了一系列的starter poms(依赖)来简化maven的配置(依赖有: http://blog.csdn.net/whatlookingfor/article/details/51393398) 自动配置spring 提供了一些生产环境的特性,比如metrics, health checks and externalized configuration 绝对没有代码生成和XML配置要求
2 快速搭建一个springboot 的框架
POM.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>springboot-framework</groupId> <artifactId>springboot-framework</artifactId> <version>0.0.1-SNAPSHOT</version> <description>springboot框架搭建,实现与mybatis整合</description> <!--spring-boot-starter-parent这个依赖提供了很多依赖的版本--> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.4.1.RELEASE</version> </parent> <properties> <java.version>1.7</java.version> <mybatis-spring-boot>1.2.0</mybatis-spring-boot> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build></project>
<properties> <java.version>1.7</java.version> <mybatis-spring-boot>1.2.0</mybatis-spring-boot></properties>
这个配置是由于在parent的POM包里面,配置了java.version(jdk的版本),如图:
阅读全文
0 0
- SpringBoot的理解
- SpringBoot的理解
- springboot理解
- SpringBoot初步理解
- 简单理解springboot
- SpringBoot简单的SpringBoot后端
- SpringBoot的DeferredResult实例:一、理解Spring的Callable 和DeferredResult
- java 关于Spring中Aop的简单理解以及SpringBoot如何添加Aop实现步骤
- 理解docker部署springboot-容器内存优化的反思(五)
- Spring boot(18) 深入理解SpringBoot
- 深入理解 Spring 之 SpringBoot 事务原理
- SpringBoot 的今世前生
- springboot的缓存技术
- springboot的restcontroller
- springboot的各项配置
- springboot + shiro的配置
- Springboot配置文件的使用
- springboot的入门学习
- 集合的划分(状态的叠加)
- POJ 2392 Space Elevator(01背包)
- .NET 操作ZIP文件第三方库DotNetZip
- TCP套接字网络编程实例(二)
- Android提醒微技巧,你真的了解Dialog、Toast和Snackbar吗?
- SpringBoot的理解
- HDU 1004 Let the Balloon Rise
- Windows环境wamp升级PHP版本
- tensorflow tf.equal(x, y, name=None)
- linux 系统下编译mysql源码遇到的问题
- c语言笔记6-函数
- freemarker如何获取当前时间或者时间戳?
- C++之让接口容易被正确使用,不易被误用(18)---《Effective C++》
- solr和mongodb 比较