springboot学习11

1、视图内容协商交互流程:1、ContentNegotiationConfigurer- - -关联- - ->ContentNegotiationManagerFactoryBean2、ContentNegotiationConfigurer - - - 配置 - - ->ContentNegotiationStrategy 实现(PathExtensionContentNegotiationStrategy、ParameterContentNegotiationStrategy、Fix
分类: 其他 发布时间: 03-06 09:31 阅读次数: 0

springboot学习12

Spring Web MVC REST1、REST资源操作HTTP :GET、PUT、POST、DELETE
分类: 其他 发布时间: 03-06 09:31 阅读次数: 0

springboot学习13

springboot1、支持的模板选项:表1.1模板Spring Boot starter 依赖FreeMarkerspring-boot-starter-freemarkerGroovy Templatesspring-boot-starter-groovy-templatesJavaServer Page(JSP)None (provided by Tomcat or Jetty)Mustachespring-boot-starter-mustache
分类: 其他 发布时间: 03-06 09:31 阅读次数: 0

springboot学习14

一、使用 Spring JdbcTemplate:首先使用 Spring 对 JDBC(Java Database Connectivity)的支持来消除样板代码。然后,将重新使用 JPA(Java Persistence API)处理数据存储库,从而消除更多代码。Spring JDBC 支持起源于 JdbcTemplate 类。JdbcTemplate 提供了一种方法,通过这种方法,可以对关系数据库执行 SQL 操作,与通常使用 JDBC 不同的是,这里不需要满足所有的条件和样板代码。在没有 Jdb
分类: 其他 发布时间: 03-06 09:31 阅读次数: 0

springboot学习15

Spring Security一、配置Spring Security。在 pom.xml 文件中引入依赖:<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId></dependency>有几种配置 Spring Security 的方法,包括冗长
分类: 其他 发布时间: 03-06 09:30 阅读次数: 0

springboot学习16

一、 自动配置:1、 Spring 环境1)应用程序属性配置文件Spring Boot 自动配置的 bean 都可以通过从 Spring 环境中提取的属性进行配置。在 src/main/resources/application.propertiesapplication.properties:server.port=8081或者在src/main/resources/application.ymlapplication.yml :server: port: 80812)命令行参
分类: 其他 发布时间: 03-06 09:30 阅读次数: 0

springboot学习17

一、rest服务Spring MVC HTTP 请求处理注解注解HTTP 方法用法@GetMappingHTTP GET 请求读取资源@PostMappingHTTP POST 请求创建资源@PutMappingHTTP PUT 请求更新资源@PatchMappingHTTP PATCH 请求更新资源@DeleteMappingHTTP DELETE 请求删除资源@RequestMapping通用请求处理1、获取数据从服务
分类: 其他 发布时间: 03-06 09:30 阅读次数: 0

springboot学习18

Spring 应用程序可以通过以下方式使用 REST API:一、RestTemplate由 Spring 核心框架提供、简单、同步 REST 客户端。RestTemplate 定义操作:方法描述delete(…)对指定 URL 上的资源执行 HTTP DELETE请求exchange(…)对 URL 执行指定的 HTTP 方法,返回一个 ResponseEntity,其中包含从响应体映射的对象execute(…)对 URL 执行指定的 HTTP 方法,返回一个
分类: 其他 发布时间: 03-06 09:30 阅读次数: 0

springboot学习19

一、异步信息-使用JMS1、设置 JMSpom.xml引入依赖:如果使用ActiveMQ:<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-activemq</artifactId></dependency>ActiveMQ 特定的属性:属性描述spring.
分类: 其他 发布时间: 03-06 09:29 阅读次数: 0

springboot学习20

异步消息-RabbitMQ及AMQPRabbitMQ是 AMQP实现,AMQP 消息使用交换器的名称和路由键来寻址。几种交换方式:DefaultDirectTopicFanoutHeadersDead letter一、RabbitTemplate发送消息1、添加 RabbitMQ 到 Spring 中pom.xml引入依赖<dependency> <groupId>org.springframework.boot<
分类: 其他 发布时间: 03-06 09:29 阅读次数: 0

springboot学习21

异步消息-kaffaKafka 是一个消息代理。Kafka topic 被复制到集群中的所有 broker 中,Kafka 集群由多个 broker 组成。集群中的每个节点充当一个或多个 topic 的 leader,负责该 topic 的数据并将其复制到集群中的其他节点。一、在spring中设置kafka在pom.xml引入依赖:Kafka 没有 Spring Boot starter。<dependency> <groupId>org.springframewo
分类: 其他 发布时间: 03-06 09:29 阅读次数: 0

springboot学习22

一、集成流integration。pom.xml引入依赖:<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-integration</artifactId></dependency>​<dependency> <groupId>org.springfra
分类: 其他 发布时间: 03-06 09:29 阅读次数: 0

springboot学习23

email集成流:@Data// 使用了 @ConfigurationProperties 注解,可以在 application.yml 配置文件中配置@ConfigurationProperties(prefix="springbootlearn.email")@Componentpublic class EmailProperties { private String username; private String password; private String h
分类: 其他 发布时间: 03-06 09:28 阅读次数: 0

springboot学习24

一、响应式流接口定义:Publisher,Subscriber,Subscription 和 Processor。Publisher 接口声明了一个 subscribe() 方法:public interface Publisher<T> { void subscribe(Subscriber<? super T> subscriber);}Subscriber 如果订阅了,就可以从 Publisher 中接收消息。Subscriber:public inte
分类: 其他 发布时间: 03-06 09:28 阅读次数: 0

springboot学习25

一、使用SpringWebFlux1、pom.xml引入依赖:<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-webflux</artifactId></dependency>WebFlux 的默认嵌入式服务器是 Netty 而不是 Tomcat。1)返回单个值:@GetMapp
分类: 其他 发布时间: 03-06 09:28 阅读次数: 0

springboot学习26

1、SpringData的响应式repository1)响应式repository,要接受和返回Mono和Flux的方法,而不是领域实体和集合。查询:Flux<Ingredient> findByType(Ingredient.Type type);保存:<Taco> Flux<Taco> saveAll(Publisher<Taco> tacoPublisher);2)响应式和非响应式转换如:在关系型数据库并用SpringDataJPA进行
分类: 其他 发布时间: 03-06 09:28 阅读次数: 0

springcloud学习3

一、断路器模式断路器提供了后备(fallback)行为和自校正功能。如果受保护的方法在给定的失败阈值内失败,那么可以调用一个后备方法代替它的位置。 在断路器处于打开状态后,几乎始终都会调用后备方法。处于打开状态的断路器偶尔进入半开状态,并尝试调用发生失败的方法。 如果仍然失败,断路器就恢复为打开状态; 如果调用成功,它会认为问题已经解决,断路器会回到闭合状态。断路器是应用到方法上的。在一个微服务中,很容易有数十个断路器。以下几类方法是添加断路器的首选。1.进行REST调用的方法:可能会因为远程服务不
分类: 其他 发布时间: 03-06 09:27 阅读次数: 0

springboot学习27

一、了解Actuator为了在Springboot 应用中启用Actuator,需要在构建文件中添加Actuator starter依赖。在pom.xml添加以下依赖: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency&g
分类: 其他 发布时间: 03-06 09:27 阅读次数: 0

springboot学习28

一、使用SpringBootAdmin1、创建Admin服务器Admin服务器通常会作为一个单独的应用。添加依赖:admin-server的版本要低于等于admin-client的版本,否则会无法注册进服务。<dependency> <groupId>de.codecentric</groupId> <artifactId>spring-boot-admin-starter-server</artifactId> <ve
分类: 其他 发布时间: 03-06 09:26 阅读次数: 0

解析函数的导函数仍然解析

首先要知道什么是解析函数解析函数是指在区域D内处处偏导数连续且满足柯西黎曼方程(C-R方程)的复变函数证明如下利用柯西黎曼方程和数学归纳法解析函数之后还有半解析函数,是由我国的王见定教授所创立的,提出了共轭积分……想要深度了解解析函数的小伙伴可以看看老师的视频https://www.bilibili.com/video/BV1Cx411174i?p=1一起学习,加油!...
分类: 其他 发布时间: 03-06 09:26 阅读次数: 0