本文标识 : Jsbt0000
本文编辑 : Jack 风
编程工具 : IDEA
阅读时长 : 6分钟
简化Spring应用开发的一个框架; 整个Spring技术栈的一个大整合; J2EE开发的一站式解决方案;
2014,martin fowler
微服务:架构风格(服务微化)
一个应用应该是一组小型服务;可以通过HTTP的方式进行互通;
单体应用:ALL IN ONE
微服务:每一个功能元素最终都是一个可独立替换和独立升级的软件单元;
详细参照微服务文档
https://martinfowler.com/articles/microservices.html#MicroservicesAndSoa
SpringBoot2.0环境约束
统一环境;
给$M2_HOME\conf\settings.xml
配置文件t添加如下内容
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<profile>
<id>jdk-1.8</id>
<activation>
<jdk>1.8</jdk>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
<!-- 如果是在学校或公司有maven私服,可以在这里配置私服 -->
<repositories>
<repository>
<id>accp</id>
<name>accp</name>
<url>http://192.168.1.48:8081/repository/accp/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
<!-- 如果没有私服,这里不用配置 -->
</profile>
整合Maven进来
${AnsiColor.BLUE}
_______ _______ ______
| || || |
|____ || ___|| _ |
____| || |___ | | | |
| ______|| ___|| |_| |
| |_____ | |___ | |
|_______||_______||______|
-----版本号-----${spring-boot.version}
> 文字Banner可以从这个网站生成(有很多种字体样式可以选择)
>
> http://patorjk.com/software/taag
>
> ${AnsiColor.BLUE} 表示Banner文字的颜色
>
> ${spring-boot.version} 当前使用的SpringBoot版本
${AnsiColor.BLUE}
___ _____ _
/\ |__ \ | __ \ | |
/ \ ) || | | | __ _ | |_ __ _
/ /\ \ / / | | | | / _` || __|/ _` |
/ ____ \ / /_ | |__| || (_| || |_| (_| |
/_/ \_\|____||_____/ \__,_| \__|\__,_|
_____ _
/ ____| (_)
| (___ _ __ __ _ _ __ _ _ __ __ _
\___ \ | '_ \ / _` || '__|| || '_ \ / _` |
____) || |_) || (_| || | | || | | || (_| |
|_____/ | .__/ \__,_||_| |_||_| |_| \__, |
| | __/ |
|_| |___/
-----版本号-----${spring-boot.version}