当前位置: 首页 > news >正文

北京住房建设官方网站网站关键词排名优化应该怎么做

北京住房建设官方网站,网站关键词排名优化应该怎么做,全国企业信息管理查询系统官网,软件开发模型图学习资料 SpringBoot 语雀 (yuque.com)【尚硅谷】SpringBoot2零基础入门教程(spring boot2干货满满)_哔哩哔哩_bilibiliSpringBoot2核心技术与响应式编程: SpringBoot2核心技术与响应式编程 (gitee.com) Spring 和Springboot 1、Spring能做什么 1.1…

学习资料

  • SpringBoot · 语雀 (yuque.com)
  • 【尚硅谷】SpringBoot2零基础入门教程(spring boot2干货满满)_哔哩哔哩_bilibili
  • SpringBoot2核心技术与响应式编程: SpringBoot2核心技术与响应式编程 (gitee.com)

Spring 和Springboot

1、Spring能做什么

1.1、Spring的能力

1.2、Spring的生态

https://spring.io/projects/spring-boot

覆盖了:

web开发

数据访问

安全控制

分布式

消息服务

移动开发

批处理

1.3、Spring5重大升级

1.3.1、响应式编程

1.3.2、内部源码设计

基于Java8的一些新特性,如:接口默认实现。重新设计源码架构。

2、为什么用SpringBoot

Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can “just run”.

能快速创建出生产级别的Spring应用

2.1、SpringBoot优点

  • Create stand-alone Spring applications

  • 创建独立Spring应用

  • Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files)

  • 内嵌web服务器

  • Provide opinionated ‘starter’ dependencies to simplify your build configuration

  • 自动starter依赖,简化构建配置

  • Automatically configure Spring and 3rd party libraries whenever possible

  • 自动配置Spring以及第三方功能

  • Provide production-ready features such as metrics, health checks, and externalized configuration

  • 提供生产级别的监控、健康检查及外部化配置

  • Absolutely no code generation and no requirement for XML configuration

  • 无代码生成、无需编写XML

SpringBoot是整合Spring技术栈的一站式框架

SpringBoot是简化Spring技术栈的快速开发脚手架

2.2、SpringBoot缺点

  • 人称版本帝,迭代快,需要时刻关注变化
  • 封装太深,内部原理复杂,不容易精通

3、时代背景

3.1、微服务

James Lewis and Martin Fowler (2014) 提出微服务完整概念。https://martinfowler.com/microservices/

In short, the microservice architectural style is an approach to developing a single application as a suite of small services, each running in its own process and communicating with lightweight mechanisms, often an HTTP resource API. These services are built around business capabilities and independently deployable by fully automated deployment machinery. There is a bare minimum of centralized management of these services, which may be written in different programming languages and use different data storage technologies.-- James Lewis and Martin Fowler (2014)

  • 微服务是一种架构风格
  • 一个应用拆分为一组小型服务
  • 每个服务运行在自己的进程内,也就是可独立部署和升级
  • 服务之间使用轻量级HTTP交互
  • 服务围绕业务功能拆分
  • 可以由全自动部署机制独立部署
  • 去中心化,服务自治。服务可以使用不同的语言、不同的存储技术

3.2、分布式

分布式的困难

  • 远程调用
  • 服务发现
  • 负载均衡
  • 服务容错
  • 配置管理
  • 服务监控
  • 链路追踪
  • 日志管理
  • 任务调度

分布式的解决

  • SpringBoot + SpringCloud

3.3、云原生

原生应用如何上云。 Cloud Native

上云的困难

  • 服务自愈
  • 弹性伸缩
  • 服务隔离
  • 自动化部署
  • 灰度发布
  • 流量治理

上云的解决

4、如何学习SpringBoot

4.1、官网文档架构

查看版本新特性;

https://github.com/spring-projects/spring-boot/wiki#release-notes

Springboot基础

1、系统要求

  • Java 8 & 兼容java14 .
  • Maven 3.3+
  • idea 2019.1.2

1.1、maven设置

  <mirrors><mirror><id>nexus-aliyun</id><mirrorOf>central</mirrorOf><name>Nexus aliyun</name><url>http://maven.aliyun.com/nexus/content/groups/public</url></mirror></mirrors><profiles><profile><id>jdk-1.8</id><activation><activeByDefault>true</activeByDefault><jdk>1.8</jdk></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></profile></profiles>

2、HelloWorld

需求:浏览发送/hello请求,响应 Hello,Spring Boot 2

2.1、创建maven工程

2.2、引入依赖

```<parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.3.4.RELEASE</version></parent><dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency></dependencies>

2.3、创建主程序

/*** 主程序类* @SpringBootApplication:这是一个SpringBoot应用*/
@SpringBootApplication
public class MainApplication {public static void main(String[] args) {SpringApplication.run(MainApplication.class,args);}
}

2.4、编写业务

//代替@RequestBody和@Controller
@RestController
public class HelloController {@RequestMapping("/hello")public String handle01(){return "Hello, Spring Boot 2!";}}

2.5、测试

直接运行main方法

2.6、简化配置

application.properties

server.port=8888

2.7、简化部署

<build><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId></plugin></plugins></build>

把项目打成jar包,直接在目标服务器执行即可。
Pasted image 20220628141310.png

注意点:

  • 取消掉cmd的快速编辑模式
http://www.15wanjia.com/news/193371.html

相关文章:

  • 如何做盆栽蔬菜网站承德微网站开发
  • 白云区做网站办一家建筑公司怎么样
  • 网站建设管理工作会议上的讲话网站关键词排名优化价格
  • 亚马逊一般在哪些网站上做推广广州增城做网站
  • 广州网站推广运营登录
  • 英铭网站建设百度广告位价格表
  • 安徽网站设计与优化wordpress 阅读数
  • 湖南建设网站官网wordpress不写代码
  • 宁波网站建设推广报价wordpress 极简模板
  • 有没有做丝网的网站呀专业网站建设效果显著
  • 安徽网络建站seo自学网
  • 网站被挂马怎么办中小型网站设计公司
  • 卖书网站开发的背景类似淘宝的网站怎么做
  • 做新媒体的小说网站做粥哪个美食网站好
  • 广告在线设计制作seo是哪个英文的缩写
  • 版面布局网站的域名和所采用的版面布局形式上海高凡猎头公司
  • 站长之家源码之家东莞有限公司seo
  • 建设银行网站查询工资网站建设关键词优化价格
  • 东莞政务网站建设方案郑州做优惠券网站的公司
  • 36 氪 网站如何优化上海珍岛做网站怎么样
  • 永嘉网站建设几王占山图片
  • 企业网站建设请示嘉兴互联网公司
  • 网监备案网站做设计有哪些地图网站
  • 网上做兼职正规网站漳州建设局网站
  • 河南网站建设公司|河南网站建设价格费用域名服务商有哪些
  • 包小盒设计网站官网制作相册小程序
  • WordPress5分钟建站网络营销论文1500字
  • sql网站源码quick chat wordpress
  • 高唐网站建设公司广州新塘网站制作推广
  • 易动力建设网站怎么样西安企业网站建设代理机构