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

北京住房建设官方网站特克斯与凯科斯群岛域名官方网站

北京住房建设官方网站,特克斯与凯科斯群岛域名官方网站,网站制作成功案例,怎么建网站详细步骤学习资料 SpringBoot 语雀 (yuque.com)【尚硅谷】SpringBoot2零基础入门教程#xff08;spring boot2干货满满#xff09;_哔哩哔哩_bilibiliSpringBoot2核心技术与响应式编程: SpringBoot2核心技术与响应式编程 (gitee.com) Spring 和Springboot 1、Spring能做什么 1.1…学习资料 SpringBoot · 语雀 (yuque.com)【尚硅谷】SpringBoot2零基础入门教程spring boot2干货满满_哔哩哔哩_bilibiliSpringBoot2核心技术与响应式编程: 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.3idea 2019.1.2 1.1、maven设置 mirrorsmirroridnexus-aliyun/idmirrorOfcentral/mirrorOfnameNexus aliyun/nameurlhttp://maven.aliyun.com/nexus/content/groups/public/url/mirror/mirrorsprofilesprofileidjdk-1.8/idactivationactiveByDefaulttrue/activeByDefaultjdk1.8/jdk/activationpropertiesmaven.compiler.source1.8/maven.compiler.sourcemaven.compiler.target1.8/maven.compiler.targetmaven.compiler.compilerVersion1.8/maven.compiler.compilerVersion/properties/profile/profiles2、HelloWorld 需求浏览发送/hello请求响应 HelloSpring Boot 2 2.1、创建maven工程 2.2、引入依赖 parentgroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter-parent/artifactIdversion2.3.4.RELEASE/version/parentdependenciesdependencygroupIdorg.springframework.boot/groupIdartifactIdspring-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.port8888 2.7、简化部署 buildpluginsplugingroupIdorg.springframework.boot/groupIdartifactIdspring-boot-maven-plugin/artifactId/plugin/plugins/build 把项目打成jar包直接在目标服务器执行即可。 注意点 取消掉cmd的快速编辑模式
http://www.hkea.cn/news/14303521/

相关文章:

  • 盘锦公司做网站八亿wap建站
  • flex布局做自适应网站网站建设服务费记入什么科目
  • 西宁做网站君博领衔电子商务网站软件建设
  • 炽乐清网站建设网站留言板设计代码
  • 网站建设服务器主板1150针网站开发也需要源码吗
  • 佛山建设局官方网站东莞企业网站公司
  • 网站建设目的定位以网站建设专业画一幅画
  • 启东住房和城乡建设局网站网站维护作用
  • 网站建设优化兼职在家android软件开发工程师
  • 郑州市哪里有网站建设做网站好用的软件
  • 搬瓦工做网站稳定吗建设银行人力资源系统网站怎么进
  • 中国平面设计和网站建设台州网站制作方案
  • 网站建设伍金手指下拉3流量平台是什么意思
  • 抚州网站seo佛山seo整站优化
  • 做ui的网站做的很不好的网站
  • seo查询 站长工具wordpress侧栏登陆
  • 制作软件需要什么工具潍坊网站优化公司哪家好
  • 微网站的链接怎么做的敏捷开发项目管理工具
  • 建筑常用的模板下载网站有哪些网站内容有什么
  • 网站系统建设招标做暧暧暖网站
  • 从化建设局网站关停南昌金启网站建设
  • 手机代码网站有哪些问题备案 网站 收录
  • 襄樊北京网站建设网站变灰色代码
  • 孝感市网站建设荣昌网站建设
  • 住房建设网站报修网站模板
  • 相城网站建设网络营销方式有
  • 网站的新闻模块怎么做中铁三局招聘信息2023
  • 腾讯云网站搭建流程网站建设waocc
  • kali钓鱼网站制作.net网站程序
  • 滨州网站建设哪家好建设公共网站的手续